A big reason they charge tuition and then credit it is because it leads to more grants. There's a bunch of bizarre accounting between schools/departments/labs behind all this, but at the core my school "charges" tuition, then my department immediately "credits" the tution using NIH training grant money awarded to my program.