Many parents have gender expectations for their expecting child, like whether they want to have a boy or a girl. It so happens that most fathers really want a son badly.
Many dads wish to have a little boy they can raise to be "just like them." When they found out this isn't the case, they can be a bit disappointed.