Those costs may seem ridiculous and petty, but also remember that prisoners do not have to be paid minimum wage. They often make only a few dollars an hour.
So that 20 dollar rental for the tablet may be an entire days work. Every email exchange a half hours work.