I bet you are gonna get a lot of opinions on this but know there probably isn't gonna be a proper answer. I don't think there have been studies of reptiles sensing humans pains and giving a thought about it.
In my opinion, you are reading too much into. With reptiles most people do, for many different reasons. "My snake does this it loves me." "My snake does this when it's happy." "My snake likes sleeping in my lap."
Snakes are an instinctual creature. People can't tell what is going on in their heads most the time but really like to think they do.