He kissed the children good night/goodbye.
Kiss sb good night —I don't think it have any literal meaning,It is an idiomatic phrase I think??
It is (usually) literal - kissing somebody as part of a goodbye or good night ritual.
It can also be used metaphorically: "Kiss your X goodbye" means "you are going to lose X".