Of course it helps to be a coastal country dipping in the ocean. I'm thinking Lesotho would have a hard time renting port space from South-Africa, let alone keep navy docks
Since a good chunk of the countries on that list are kingdoms, I'm thinking heads of state needed some formal boat for international excurtions, and if you're gonna have a royal boat, they you better save face and have a royal navy to go with it

.