Photos app doesn’t come with a built-in lock, which means people with access to your Mac can easily access and view your photos.
Typically, photos on Mac are stored in the Photos library and are viewed and managed via Apple’s Photos app. Chances are good that you have some photos on your Mac that you don’t want other people to see.