They make profits with the business, as every single other business in the world. Unlike all other businesses though, they are a business that then funnels a significant chunk to philanthropy. How much has your favorite TV channel given away? Or your favorite book publisher? Or your favorite video game company? Or whatever businesses sell the entertainment you buy?