These fees are payable by the estate, not by the person who took care of it. However, often the person who signed the contract with the funeral director also agreed to personally pay for these expenses.
To learn more, see Settling an estate.