Not only is the porting for on-road/off-road/buggy/truggy/MT different, but they also usually have different carbs, cooling heads and starting mechanisms.
Onroad can run a much smaller cooling head due to the speeds they run at. As for carbs, the larger the vehicle, the less restrictive they are and the less fuel economy usually matters. For on-road and buggy racing, a smaller intake on the carb (venturi) allows for longer run times due to less fuel being sucked in, but it also can mean less raw torque off the line. Runtime is very important for on-road and buggy racing. Fewer pitstops makes for faster race times.
You will usually notice that "MT" type engines are pull-start vs bump start since many MT's aren't setup in such a way to bump them with a starter box.
The porting is usually different to maximize torque or peak RPM's. More ports usually means higher RPM's and peak torque is higher in the RPM range. For MT's, torque in the lower RPM range helps to get the big rigs moving and peak RPM's aren't as important as you usually aren't shooting to hit 1:1 highway speeds.