How has OS X's Photos app determined people's names under the 'Faces' album?
It has access to the face data in your contacts, such as from syncing with Facebook. So, it's found similarities to those pictures.