Because it needs to be on-page so that it can go through the Mako template system, and because the contents of this variable are specific to the page that you're on. It's not like a reusable library; it's intended to be a reference to the course that backs the current page view. Basically, it's a convenience.