You did not have a graveyard built in your City. to get the upgrade you need to have had a graveyard in your City before you completed the specific quest that related to a graveyard (it was an either/or quest which said something along the lines of selling your graveyard or a cultural building). If you had sold the graveyard at that point you would of received an upgrade graveyard in return.