Rugby balls are not ball shaped, so how did they get to be the shape they are – and why, exactly, are they still called balls?

Rugby balls are not ball shaped, so how did they get to be the shape they are – and why, exactly, are they still called balls?