What are the benefits for universities/professors to record online courses? What are the benefits for the universities and particular professors  in recording online courses (MOOC)? Do they get paid by Coursera and similar sites? Do they pursue publicity?

I know that they are providing a useful service by spreading education to everybody in the world, but what do they get in exchange? Do they hope to get more students enrolled, or more public exposure for the university? Or do they do it out of the kindness of their hearts, or for some other reasons?
I record my lectures (when possible) for the following reasons:


Easier access for students who can't attend class.  While I generally want students to come to class, there are valid reasons for being absent (e.g., I'm currently teaching classes to military members who often have duty that preempts class attendance).  I can also point students to a video to review if they ask me questions explicitly covered in class (and also for general review).
Open access.  I think it's pretty cool to live in a world where it is possible to get free access to videos that enhance knowledge.  I feel like I'm playing my little part by putting my lectures online.
Introspective review.  It can be extremely beneficial to review your own teaching methods, although I don't have time to do this for all of my classes.  I have gone back to particular sections to review, and I almost always find something I could improve upon.
(minor) The America's Funniest Videos factor.  I've had clips that have been unintentionally hilarious, either because of something I've said, or because of something students have said. :)


Universities have their own reasons for putting classes online, and you've already listed a number of them.  I'd like to believe that most of the reasons are altruistic, with sites such as MIT's OpenCourseWare and Stanford's Online Courses providing no-strings-attached courses for free.  I would also hope that someone is doing research on these types of course offerings, to see if they are really having benefits to the people that watch them.  I don't believe the bottom line at extremely selective schools will ever be hurt by offering free course material, but if they do start feeling the pinch I imagine they will change their models.

Sites like Courseara are for profit and starting to make money by offering to verify certificates of completion for a cost.


  Why, then, some [Universities] charge enormous fees for attending courses?


The question of college expense is a can of worms that has as many differing answers as there are people asking about it.  Selective colleges charge what they do because (1) it is expensive to run a brick-and-mortar college, and (2) the applications keep rising and kids can still get loans, grants, and other aid.  Obviously it is much more subtle than that, and it would take more than a few free economics courses to get to the bottom of it.