We really don't know, but it looks to me like the cats knew and recognized the person. Otherwise there is no way a street cat would allow anybody approach it, let alone pet it.
Either the cats were just outdoor cats, therefore used to people, or, if homeless moggies, they knew that person well. In the second video, the cat sitting on the car actually 'called out' to the person approaching it, it looked to me as if there was definitely recognition there.