Fastner Question

Why the slots in this nut which is original from a rear spring shackle/hanger. I assume it has something to do with gripping better to bolt and prevent unwinding but not sure.

I notice now many aftermarket spring hardware comes with nyloc nuts instead of these slotted nuts.

slotted nut.JPG