A man stroked the head of a stray cat in the street and talked to it.