The described segment—a pharmacy coming alive at night with singing baby bottles and dancing kettles—appears in the 1970s animated series "The Wacky World of Mother Goose" (also known as Mother Goose and Grimm? No, that's different).
Specifically, the episode "The Pharmacy" (or similar title) features anthropomorphic bottles, kettles, and packages performing musical numbers. The series, produced by Rankin/Bass (or similar), aired in syndication ~1967–1970s, adapting nursery rhymes with surreal humor.
If not this, it could be a segment from H.R. Pufnstuf, The Bugaloos, or a Schoolhouse Rock! short—but "Mother Goose" is the strongest match for nursery-rhyme-based pharmacy fantasy.