why is it necessary to calculate average speed
Then by calculating average speed you actually calculate the slope of the distance time graph. that allows you to figure out distance travelled in a certain time. This only works when the accelleration is constant. then the average speed has the same value as the slope of the distance time graph.