Or the Raticate did in fact die, but not because of you? It's a graveyard. The game's not exactly subtle about that fact, doesn't pretend that dying doesn't happen.