For a long time, sleepwalking in children was regarded as a sign of illness. Many parents do not understand why their child sleepwalks and what causes it. Sleepwalking is common in children between the ages of 4 and 12. It is more common in boys than in girls.