France also borders Suriname and Brazil at French Guiana, Spain borders the UK at Gibraltar (and Morocco at Ceuta and Melilla)… there’s lots of pub-quiz-winning ones sprinkled about!
The map clearly says that it ignores exclaves.
If the map ignores exclaves why does the UK border Ireland?
Northern Ireland isn't an exclave.
By the “connected via territorial waters” rule, neither is Ceuta.
Probably would have made the diagram a lot messier, though.