There's resigning vecause you know you have done something wrong and accept responsibility, and "resigning", which is what you do when you know you are going to be sacked, and want to leave a door open for a possible return in time. The former is pretty rare - the latter is commonplace.