Cities, countries and ships have traditionally had a female pronoun. This is becoming less common, and today we usually use "it" to describe them. But in the literature of the 19th century, this was very common, and some people continue doing it today.