I mean, that is actually true. A restaurant that spends a lot of money on fixed costs (large tables with lots of space between them in expensive cities) will not accept a reservation for 1.
Just call any Michelin 3 star restaurant in an expensive city and ask for a reservation for one at a table, not the bar. It’s not at all illegal to deny this. Number of people in your dinner party is not a protected class.