Drive wheel bearings, how do they work?

Study the various methods of attaching the wheel to an axle in the link. The bearing is between the axle and wheel on quite a few but totally separate on others. There is no simple answer.