Before the 1930’s, airports had two-letter codes. When codes switched to three letters, many added the letter ‘X’ to the end. San Francisco instead used its last letter ‘O’.