why not use integral for averaging inductor current?
The current is assumed/approximated to be linear over time, and it's quite convenient to calculate the average this way.

Of course you can be the badass using integrals to calculate the average in this simple case, and if the function is not linear, you will definitely use integrals.