This o-ring seal, is inside the wheel bearing cover.
You should always replace seals when replacing wheel bearings as the failing seal is typically the root cause of the bearing failure.