Engineers are awful at advocating for themselves, and that’s why they study and work twice as hard as lawyers and finance, have less perks (travel, food, cars, private offices) yet they get paid half as much.
The majority of people in finance are working in low paid back office or retail roles. Less than an engineer on average. You only hear about the outliers.
These finance jobs are low paid because they're not that skilled and many people can do them. Same basic reason as why fast food temp worker is low paid.
Just take company secrets and walk over to competitors. That is the greatest perks every engineers have but don't exercise it. Some literally become billionaires. You think China overnight taught of everything by themselves? Go ask what did the Japanese and SKorean senior engineers did over the weekends from 90s to 2010s. Law is only effective if it can be proven in a court and judge sentenced it. Vast majority never even reach the lawyers ear. You advocate means you most likely will divulge. The quietest and least "smart" engineers probably are the smartest and riches.