The squat switches are there to prevent a dumb pilot from retracting the gear on the ground, if they would trigger the three green lights for gear down, you wouldn't get three greens until safely on the ground when the squat switch closes because of weight on the wheels. Not much use for three greens then, you would have found out the hard way if they are down and locked.