Another way to say "visiting a museum is for education" is "People become educated when visiting a museum."