It’s illegal to cross the border outside of official border crossings, see 8 U.S. Code § 1325 - Improper entry by alien. Of course in this case it seems like the crossing was unintentional, and I’m unsure if the UK has similar laws.
Also remember there was no internet in 1965, they couldn’t exactly google for a law.