The general public was allowed in as spectators at "The incubator doctor" with only their curiosity as a reason. The med students have a real need to observe patients and conditions as part of their training.
My experience in teaching hospitals is that the students back off if asked to do so but I think the request needs to come from the legally responsible person.