It was believed at the time that social diseases could be spread by toilet seats. When a sailor sees the hospital corpsman (pecker-checker) for a shot, he is ordered to only use the red seat until he is cleared by the corpsman.
That's also where we get the phrase, "on the hot seat." Tmi?