A group of people are looking at photographs on a wall and speaking to each other.
A group of friends are visiting an art exhibit.
Not all photographs on walls are part of an art exhibit.
You can not infer it's for art.
A group of people isn't always a group of friends, and photographs on a wall don't imply an art exhibit.