Being a landlord is a choice. Discrimination based on age is a thing. If you don't like certain types of people, you can choose not to take advantage of people with literal rent-seeking behavior, then stop being a landlord and sell your property.
Or they could just do what they are doing now, which is completely legal.