There is a specific distance required between the driven and driver teeth. Those shims are usually used to get that distance right, but more importantly, they are also the bushing used when the axle is being pulled out.