Why Singapore was governed?

Singapore has an great harbor, and was thusly controlled by Great Britain. Because it was a major British military installation, the Japanese had to take it.