The thing about grocery stores is, people go there frequently. Flu shots are essentially a community service. All retail is local, and by providing a service like this, you show the community bona fides.
At the drugstores, flu shots add to a growing menu of medical management that consumers used to visit their doctors to do: screenings for blood glucose and cholesterol, advice on ailments, and immunizations for diseases such as hepatitis and shingles.