Most European languages assign gender to nouns. English used to have that feature but has gradually gotten rid of it. Until recent years, people would refer to ships and countries as female. For example if you were referring to the USS Constellation on a voyage, you would say she is sailing. Similarly, if you were to say that France was going to become an ally of Spain, you would say she is becoming an ally of Spain.
I’ve been on the USS Constellation (the one in Baltimore) and rung the bell (to embarrass my date). It was a lot of fun.