The key to this joke is hair.
Hair has the same pronunciation as hare, which is an animal similar to a rabbit. So, when the woman tells him he has a stray hair, he thinks she is talking about his rabbit (his hare).
The word stray means 'away from its place.' In this case stray could refer to his hair or the rabbit.