My mother kissed the baby on the lips.

Literal

Mother [topic-は] baby [possessive-の] lips [on-に] kiss [object-を] did

唇にキスをした = 'did a kiss on the lips.' に marks the location. キスをする (to do a kiss) rather than キスする — the を version treats the kiss as a discrete action/noun.