Because if that roller coaster stops unexpectedly for any reason, its lap bar won't be able to restrain a child under 40 inches tall. That's why the ride has that height restriction. Ignoring ride restrictions can kill riders and has on thrill rides around the world.