Question: why are inanimate objects female?
Answer: Humans tend to do what they like and they don't like rules. "As many exceptions as rules", etc. That said, the English practice of referring to inanimate objects as "she" appears to concentrate in areas historically dominated by males (navies, military, locker-rooms, car-repair shops, etc.)