Usually they are violating copyrights. They make money by either selling advertising on their site or by using a file host that pays per download/view.
Some of the free porn out there is promo material from the actual studios. These are typically very short clips though.