Here's why:
* "They" refers to a group of people other than the speaker and their friends. The sentence is about the speaker and their friends going to the museum.
* The correct pronoun is "we" because it includes the speaker and their friends.
Here's the corrected sentence:
My friends and I went to the museum where *we* saw a modern art exhibit.