To be fair, it wouldn’t necessarily have to understand all the concepts involved to remember what would probably be a fairly traumatic moment. Parrots and other intelligent birds are known to grieve, so they probably do understand death, if not murder.