Usually cheaper places have free wifi and expensive 5 star hotels have paid wifi, even in the same city. I think on reason is knowing their customers. A backpacker hostel won't be able to charge the backpackers €10 a day for wifi, the people will either choose another hostel, or go to a cafe. The people staying at an expensive hotel are less price sensitive and will pay up.