They clearly can, and are in this case used, to communicate information where neither the listener nor the speaker is even thinking about race or sexual orientation, and no comment thereon is made.
If you wish to still call that “racism and homophobia”, then neither of which necessarily has anything to do with race or sexual orientations, or even disdain. — you should also know that your usage of these words is then quite nonstandard, and does not align with what most mean with them.
The word “nigger”, in particular, has been of particular interest of study in how depending on context the word can very much be about race, and negatively so, to a simple form of address that has no implications of race.