However, the meme misses one crucial point. People in Bosnia and Herzegovina can swim at the beach!
Because their country has a tiny coastline! The second smallest in the world.
It goes way back to the 17th century and the Great Turkish War. In short, following this conflict, a small part of land from then city-state Dubrovnik was given to the Ottoman Empire, which ruled Bosnia at the time. It's remained that way since.