They can't know what they are making from charging resort fees on top of list prices, because maybe someone would stay even if they originally were quoted a price including the resort fee.
I'm sure that if they are forced to stop with these fees, they will just raise their prices. (And probably devalue their rewards program too, as that seems to be another way to rip people off without them realizing)