The piston pin should be non-rotatively linked to the connecting rod.
Furthermore, said shape is to prevent noise from being generated in the piston pin bearing.