Why not wake up a sleepwalker?

Now, was it a myth created out of actual folk medicine lore or a myth created out of a need to promote a comedic device in plays/tv shows/movies, etc (that is, sleepwalking is funny, so a reason is needed for the other characters to not just wake them up).