Usually executive producers are funding the movie in exchange for the credit and usually a cut off the potential profits. Most of the time they are directly funding with money but sometimes they are using social capital and name recognition as their "investment." Executive producers are not usually paid at all except in points on the back end
Not justifying the system just explaining how it typically works