Typically you carry your groceries in a bag. Some people have wheeled bags for bigger trips.
In neighborhoods with a traditional urban form (or "15 minute cities"), you wouldn't usually take mass transit to the grocery store, it's within a short walking distance. With groceries close by, it's natural to make frequent, smaller trips.