There are various types of cats.
“(…) Gauptvakhtov stroked the big gray cat (…)… The cat purred and stretched appetizingly.”
“Forgot” by Anton Chekhov
Gauptvakhtov was an unknown person to the literary cat.
I run away quickly when stranger approaches me. However, fear of strangers in my case is not problematic. After some time I return and accept guest. But I do not allow unfamiliar persons touch me. Stroking my fur by them never takes into consideration.