If the person is in public, and they are incidental to the subject of the photo, permission is not required.

If you are taking a picture of a stranger, of course you have to ask their permission.

These two things are not the same.