I wouldn't say a ton of money. This article [1] says it averages 150k/yr profit but it costs between 1-2mil to start.
[1] https://www.mashed.com/178309/how-much-mcdonalds-franchise-o...
[1] https://www.mashed.com/178309/how-much-mcdonalds-franchise-o...