Righty-tighty, lefty-loosey (or lefty-loosey, righty-tighty) is a catchphrase and a sort-of nursery rhyme designed for tutorial functions.
The purpose of the rhyme is to assist recall the mechanics of a standard screw, bolt, or nut that operates with threads.
When rotating a screw clockwise (right-way), it tightens. When rotating it counterclockwise (left-way), it loosens. Therefore the rhyme.