In the beginning of the season 3 TOS episode "The Enterprise Incident", the Enterprise crew are taken off guard by the sudden appearance of two additional Romulan ships. When Kirk asks Spock, he speculates that the Romulans must have developed a cloaking technology.
But they already faced a cloaked Romulan ship in the season 1 episode "Balance of Terror".
Is this just a continuity error or is there an explanation for this?