They are doing everything they think they can get away with. I agree that ethics and morale should factor into corporate decision making, but at this level I'd argue that corporate decision making is purely an optimization game between profits over various horizons.
If they think this maximizes their payoff, they'll do it. I'm 100% certain that they realize that this may/will invite further lawsuits and have factored this into their calculations.