How else can you get a bunch of kids to have as a life long dream to kill and be killed? You make it look cool and glamorous and hide the nasty bits. If war movies were real they'd all end up with your team half dead in combat and the other half committing suicide back at home from the PTSD.
[0] https://en.wikipedia.org/wiki/Military%E2%80%93entertainment...
What? And that is not controversial?
It's marketing.
And the number bandied about in the first few links was something like $5.5 million over three years. Not a huge amount of money.
If the trades advertised as much as the military there wouldn't be shortages of electricians, plumbers, HVAC technicians, etc. Some of those careers are just as highly technical as programming and might pay just as much (sans stock options). Hollywood doesn't make movies about plumbers though.
[0] https://www.thesoldiersproject.org/what-percentage-of-the-mi...
From the moment the first machine gun rang out over the Western Front, one thing was clear: mankind’s military technology had wildly surpassed its medical capabilities. The war caused carnage on an industrial scale, and the nature of trench warfare meant that thousands sustained facial injuries. In The Facemaker, award-winning historian Lindsey Fitzharris tells the true story of the pioneering plastic surgeon Harold Gillies, who dedicated himself to restoring the faces of a brutalized generation.
Gillies, a Cambridge-educated New Zealander, established one of the world’s first hospitals dedicated entirely to facial reconstruction. At a time when losing a limb made a soldier a hero but losing a face made him a monster to a society largely intolerant of facial differences, Gillies restored not just faces, but identities and spirits.
The Facemaker places Gillies’s ingenious surgical innovations alongside the dramatic stories of soldiers whose lives were wrecked and repaired. The result is a vivid account of how medicine and art can merge, and of what courage and imagination can accomplish in the presence of relentless horror.