What are the metallic loops on the sides of a connector for?
The mating half of that connector is designed so that the loops can clip into place and thus you have a connector pair that is more resilient to vibration and general movement i.e. the two halves are held together this way without relying on electrical contact pressure.