My baby had the same thing and when I took her to the doctor they said it was because she had cradle cap. I guess cradle cap is considered an infection on the head and can make the small glands on the back of their head swell. I don't think it is anything to worry about. Good Luck.