Mountain bikes have wider handlebars because the wider the riders grip is on the handlebars, the easier it is to transfer input from the hands to the wheel. It takes much less power to move a wider handlebar, but at the same time, you have to move the handlebars a lot more to make it go in a certain direction.