Solution 1:

The Oxford Dictionary defines a grocer as

NOUN
A person who sells food and small household goods.

So groceries are not restricted to food items.