Why is it good practice to check if a key is part of the dictionary before removing it?

To avoid getting an error in case the key is not presentTo know if we need to add a key

To avoid getting an error in case the key is not present.