A man's home is not always his castle. You cannot use it to break laws. At least in the US, you cannot:
1. Murder someone on your grounds unless in self-defense. If someone is found shot 5 times or in the back, you will be charged with murder!
2. Set lethal booby traps.
3. Smuggle illicit goods.
4. Having dogs fight like Michael Vick.
5. View child pornography.
Discrimination by selectively serving the public on private grounds, I believe has not yet been tested in the court of law, but this was the excuse that many private businesses had in the past when they decided to serve white people only.
And it's at the hiring time that members from the general public are allowed to compete for jobs.
The process is akin to the fact that everyone in the public is in my potential circle of friends, and once a friend you may be allowed in my house. But that doesn't make my house anything close to publicly available.
Birthdays normally are 'invite only', and as long as they are they are private functions. Birthdays open to the general public are not common (at least not where I live).
Open to the general public but closed to some subset (the people with red hair, people born on Tuesday and so on) are possibly illegal but as long as they are in someones private dwelling they have the right to toss out anybody for whatever reason so it's going to be very hard to know what the real reason is. In my country if I tell you to leave three times and you don't I have the immediate right to even use force to remove you, whatever my reason for not wanting you in my house.
Houses are special, they are not generally open to the public, and in case they are no doubt the rules change but that was not the example used. So don't twist it that way.