The story
From kiss + her + in + the + buttery (“room for keeping food or beverages, storeroom”), from the way the flower’s petals are said to resemble the faces of two people kissing: see the 1891 and 2010 quotations. Compare other vernacular names for the wild pansy like come-and-cuddle-me, heart’s delight, Jack-jump-up-and-kiss-me, kiss-me-at-the-gate, love-in-idleness, and tickle-my-fancy. (The word buttery is etymologically unrelated to butter, though the latter may have influenced the shift in meaning from “room for keeping alcoholic beverages” to “room for keeping food or beverages”.)
Etymology from Wiktionary, CC BY-SA 4.0.