Husbands upset

Took a pregnancy test today and was excited/scared to see it was positive. I shared the news with my husband when he got home from work. I was shocked when he got angry and jokingly shouted at my stomach...get out. I thought he would be excited about becoming a father. Is it just a reaction that shows he is frightened just as i am to become a mother?