Cheap labor, takes the load off of professors when it comes to the gruntwork (grading, etc.) so they can focus on research, teaching, and grantwriting, and it's part of the apprenticeship of grad students (which is what grad school and postdocs are supposed to be), introducing them to the world of teaching. In my PhD program, post-quals you had to fully teach one intro class as part of your degree requirements.