This is done for a prisoner who shows good behavior and his sentence is lessened.
A pardon wipes out the underlying offense. A commutation doesnt.