I dont think it should be illegal, companies exist to make as much profit as possible. I work to make as high of a salary as possible. My life us privileged, right now I make almost 5x what a local engineer would make. I also pay more than a local engineer’s salary in child support and get fuck-all in benefits for my americam taxes so I have to save more.
It’s just business.