Wheel Hub question

It's common for that to happen as AJ explained (not cool, but common)
When I had one that did that if I couldn't find a replacement, I would use a sharp punch and put a ding about 1/4 inch apart and three rows of them all around the race contact area, and then install the race using red locktite.
I never had one ever come loose again, but it's a bit more of a pain to change the race next time.