It's called a "squat" switch because it doesn't lock out the gear up circuit until the airplane "squats", or has weight on the landing gear sufficeint to actuate the switch.

This pilot apparently was a little too quick to raise the "flaps", and didn't look to see what his hands were actually touching! The wheels may have touched down, but the airplane was still flying ... otherwise nothing would have happened!