Because otherwise you'll have integer division which will give an integer result. It would be casted to a double implicitly but you will have a truncated result
When the compiler sees the expression "a / b" where "a" and "b" are expressions or terms of type int,
the division is performed using integer division, regardless of what the result is assigned to.