Wouldn't it be unethical to take on a job you were certain you'd fail at? (If you disclosed that, and they hired you anyway, then there's no ethical problem.)
That may well have been the case, but if those odds are 1% and 2% I wouldn't want my compensation to depend on me saving the probably-doomed company.
What if you were the best qualified candidate?
Would it be unethical then?