There were two great evil ideologies that ravaged the last century. One promoted hate agains people based on race, another based on wealth. One was called fascism and the other marxism. They both killed millions and they both are rearing their ugly heads back lately.
As an individual you are entitled to hate whomever you want. After all, we all have the racist uncle or the commie nephew. But the law should shield the public from people like you, not help you hunt your victims. Anti-segregation, anti-discrimination and privacy laws are good for that.