Why did Childrens Crusades happen?

The Crusades happened when they did because the Muslims had tacken the holy city of Jerusalem in the 7th century