You can make the same argument about food too: buying chicken at Costco is way cheaper per pound than in Whole Foods or Aldi. Are they also penalizing single people? No: buy more, pay less per unit.
The hotel also cannot easily split and recombine rooms and beds on demand. They have to decide upfront how many single-person and two-person rooms to build, based on what they perceive the market desires.