Why isn't `currentPage` in the template?

Also, if everything in here uses `currentPage` why isn't `currentPage` passed in as the model?