Why do people kiss?

Greetings, offering congratulations or saying goodbye

NTR

People have been kissing one another for a very long time. For example when they greet one another, of if it's someone's birthday or even due to superstition. But why do people kiss and what kinds of kisses are there?