Usually doctors do not like to take out the uterus
during a csection
because it is a difficult surgery.
It is generally done because of very heavy uncontrolled bleeding that is a threat to the new mother's life. General several other options are tried and removal if the uterus is seen as a last resort.