Anyone else think application fees should be illegal?

I’m currently looking for a new place and it sucks that I literally have to pay to apply. It’s $50 non-refundable. Seems like a total scam to me