From the airline’s point of view, it depends on which group of people provides more revenue, and which group is more likely to change their “flight-buying” behavior, and in what way.
Can’t argue with that. It is easier and more prolonged to simply charge for upgrades for all passengers willing to pay, rather than penalizing parents traveling with children.