Switching to exams in person and more presentation-based exams is how you get around this. You can pay someone to write a paper, but its hard to then show mastery of that topic in a discussion with your professor.
That would require professors to show interest in teaching, so I doubt universities would go for it. It doesn't scale and they're not interested in adequate staffing.