The dire shortage of pediatric hospital beds plaguing the nation this fall is a byproduct of financial decisions made by hospitals over the past decade, as they shuttered children’s wards, which often operate in the red, and expanded the number of beds available for more profitable endeavors like joint replacements and cancer care.