Distribution is necessary. Booking.com, Expedia and tour operators bring demand the hotel wouldn't get any other way.
What gets expensive is the guest who already knows the hotel booking through the platform again, because they never got a reason to book direct.
That happens when the hotel doesn't know who its guests are, doesn't talk to them after the stay and measures marketing in clicks instead of bookings.