How is the seat of a wheel bearing guaranteed?

Hello together, I have a special question and I’m pretty sure that I’m in the wrong forum, but I don’t know what else that could fit into. I’ve already pressed in about 4 wheel bearings in my life and it always went well. The next one is in June. My father squeezed one a few months ago and that became loose with time. Now my question is how is such a correct seat of a wheel bearing actually granted, so that it doesn’t get loose. s is “only” pressed in with a few tons without glue and without screws and holds the wheel even at 250km/h without it coming out again. How is this realized on a technical level. My BMW has a bolted one at the back and I understand everything, but a normal pressed one is simply pressed in with grease.