Why was the first computer invented?

As the word computer implies: Compute means to calculate or solve any problem... Therefore, the first computer was made to do the mathematical calculations and to get these result with much more ease then ever before...