The difference in energy required to ride on the front of a small break away vs in the middle of a peloton can be as high as 50% on a flat stage.
Given that, realistically what would happen if you attack on the last flat day is that the peloton would just follow you and wait for you to tire yourself out.
The domestiques on the front of the peloton can we swapped over time to give them a rest so that the peloton never slows and in fact increase its speed over time.
This is why the sprinter's teams almost always catch the breakaways and why the beakaways are allowed to go up the road in the first place.
Sometimes the peloton gets the sums wrong or doesn't factor in the affects of the wind and the break succeeds but not very often. By the last day of the Tour the leader can have minutes on second place so the chances of them making that up in a break are pretty small.
Aerodynamic inefficiencies and tradeoffs are one of the things that make cycling such an interesting spectator sport for TV.
https://cyclingtips.com/2016/08/when-the-post-tour-crits-don...
In terms of the economics of these races, they are much better spectator events as they take the form of laps around the centre of a small city. The audiences still doesn't pay, but it's much easier to go watch- so the city will pay the race organiser, both to put their city on the map and for the economic benefit of all the food and drinks the spectators buy, often from stalls or trucks that have paid the city for a license...
http://www.alpsandes.com/posts/2016/7/28/jurgenmettepenninge...
If the last stage was mountainous or a time trial, perhaps. But it hasn’t been in a long time (or ever?)
Also, I don’t think a guaranteed banking of the second place cheque would ever prevent a rider from going for first. These guys want to win, not make a few extra euros.
1989[1] is the most famous.
Another possibility could be an organized coup by the 2nd place team, then it essentially becomes a team time trial between 2nd and 1st place teams, while the rest of the peloton is battling for the sprint victory. Unlikely but not impossible.
Flat tire or some massive crash in the last km or so might happen, of course, but I think it never did (or at least never influenced overall podium standings).