If a hotel room for a single person were half the size of a hotel room for two people, then charging by the person would make sense.
But you are paying for a room of the same size, whether you stay in it by yourself or you share it with three other people. The marginal cost of towels, hot water, and breakfast is de minimis.