Here's why:
* It lacks a subject: We don't know *who* visited the museum.
* It lacks a verb: The phrase "visited the museum" is a verb phrase, but it's not a complete verb.
To make it a complete sentence, you need to add a subject and complete the verb:
* Example: You visited the museum last week.