It is not at all uncommon for fires to be set in order to destroy evidence of murder.   In those cases, the person does not die in the fire, as they are already dead before the fire even starts.

There is telltale evidence that investigators and a coroner can check for in order to determine whether the cause of the death was from the fire, or whether the person was already dead.