The joke is a pun.  Usually when fastening a seatbelt in a car for example, the part of the belt that connects will make a 'click' noise as it locks in.  To say that something 'clicked' may also mean that the person suddenly figured out the correct way to do something.
I couldn ' t figure out how to fasten my seatbelt . Then it clicked .