A MTB is designed to give it's best performance at lower speeds, and to have superior low speed manouverability, therefore the steering geometry is designed with very little trail.
OTOH, a road bike, being capable of much higher speeds, but not generally needing low-speed manouverability, the steering will have much greater trail.