It is about as unethical as it gets.
But, our current iteration of capitalism is highly financialized and underinvested in the value of engineering. Stock prices come before truth.