Why are countries and ships referred to as 'she'?

by [deleted]
dolphinboy1637