Flat and very low rise bars are popular at the moment but the reason they have become so is largely being driven by DH racers wanting to get their front ends as low as possible in order to get the front end to grip more. This increase in grip comes from having a lower centre of gravity and more weight over the front wheel as the low rise/flat bar pulls you down lower of the front wheel.
Riser bars became popular at a time when forks weren’t typically 200mm in travel and consequently the front end of a bike was significantly lower. At that point, there was a desire to raise the riding position in order to make it easier to ride down steeper terrain. On some of the courses in this year’s World Cup, the terrain has been so steep (for example Champery) that pro-DHers have been reverting back to higher rise bars.
You’ll notice that all of this comment has been centred around downhill rather than trail riding. Typically what becomes popular with pro-DH racers also becomes fashionable with trail riders. To some extent your bar height will make a difference on a trail bike, say if you’re running 150mm or more. But for 145mm trail bikes and less, the height of your bars tends to be primarily determined by comfort and not performance.