Because discriminating is not a right. It is absurd to say that what is being denied to the bar owner is a right. It's not. Any all rights that the bar owner has is defined by and given to him by the government. There's nothing being taken away when he is told he cannot discriminate.
Negative rights are not granted by government. They are acknowledged to already exist and be protected by government. If they are granted or bestowed, they aren't rights, they are privileges.
Positive rights are the only rights that can construed to be considered "given" by the government, although I can argue that positive rights either don't exist as rights at all or are in fact cleverly disguised negative rights.
Sure the bar owner can discriminate against anybody he chooses because his bar is his own private property and undesired persons are considered trespassers. His private property rights are being violated if he is forced by law to admit people he doesn't want. Of course in most places today we are advanced enough that this would probably lead to disastrous consequences for the patronage of his business. Remember, most of the systematic racism in the old South was institutionalized by the government, e.g. Jim Crow laws, voting requirements, segregated schools, etc. If the government had merely done its job and protected the negative rights of African-American citizens then the racism wouldn't have been nearly as prolific.