Because the Senate had the votes to convict and remove him from office. Presidents don’t resign absent the rule of law, largely because that constitutes a death sentence.
Like common, American top level politicians are protected against the law like no one else. They can commit any crimes, literally, and norms are to look away and celebrate them anyway.