Resigning allows you to answer no to "Have you ever been fired or asked to resign from any past position?" on future job applications.
Note that they have no way to know you were asked to resign. When you are asked to leave company records will show "left for personal reasons": it is illegal for them to ask what they were.