Well, maybe they would need to be partially alive for the headcrab to be able to control the nervous system, which would be why the headcrabs only attack living things.
If you deprive the brain of oxygen for too long it gets damaged, if the person was dead for too long then the brain wouldn’t be usable, so I expect that the headcrab only kills them once they have finished with them.