It could be a comforting kiss, like maybe you were stressed out or depressed about something and he just wanted you to know that he is there for you as a friend.
But if he closed his eyes before kissing your forehead, and sniffed your hair after the kiss with audible breath … then you have a problem.