Targeting specific demographic using protected categories in other areas can be legal too.
As a pharmaceutical company you can target women, men, seniors for targeted medications. As a LGBTQ dating site you can target based on sexual orientation and cis/trans. It is not illegal. Housing and jobs (maybe something else) are covered by specific legislation.