A lot of parents like to know the gender of their child before it is born in order for them to prepare for the arrival. Some people like to decide on a name before birth, to buy clothes for their baby, and to decorate a room for their child.
It is a choice completely up to the parents and others should respect that.