Bearings are what allow the gears to rotate smoothly. They are usually created out of bronze or brass, and they in shape into races (or grooves) from the gearbox housing. That is why producers arrived up with internal filters. These filters are available on quite a few modern automatic transmissions. https://filtergearbox68766.jts-blog.com/33073077/filter-gearbox-for-dummies