In some towns, it is getting harder to pick up your blood-pressure pills with that gallon of milk and rotisserie chicken.

Hundreds of regional grocery stores in cities from Minneapolis to Seattle are closing or selling pharmacy counters, which have been struggling as consumers make fewer trips to fill prescriptions and big drugstore chains tighten their grip on the U.S. market.

Grocery...