It could be a lot of things. Does it strike at him every single time it sees him? If not it is probably just a coincidence it struck towards him. Just because his head was pointed towards him, doesn't mean his was staring at him. His eyes could have been looking at something else.
It could be scent. No neccisarily the cat scent, but something on him. Or i might be spooked by the cat smell. Other animals won't always bother snakes but they could. Out of my collection, none of them care about our dog, but we do have one snake that you can easily see it's behaviour change when the dog if near it. This could be a stretch, but if his cats ate or played with rodents he could have had the scent of food on him.
It could be his movements spooked him.
Something else could have spooked it and he was just in the way when it struck out.
Bring it out a few more time when he is there and see what happens.