These are typically used in assemblies where a part needs to be securely fixed onto a shaft, such as in automotive or machinery applications. They snap into a groove, creating a shoulder that prevents parts from slipping axially along the shaft.
eBay