The man is taking a picture of the beach.
the man is a photographer
Simply because the man is taking a picture does not mean he is a photographer.
We have no idea if he is a photographer, he could be anyone.
One cannot assume the man is a photographer simply because he is taking a photo.