100% intentional, these aren’t weed wackers or lawn mowers that have tiny soup cans for mufflers. In fact many are very quiet. For example: listen to a VStrom. It’s also pretty common for them to be rather quiet at low RPMs and driven easy but scream at higher RPMs. Which is a detail that is not restricted to bikes, force your car to shift late under hard acceleration and it will probably roar too. Both my ford ranger and my DR650 do this, quiet when driven easy but if you push em they get pretty loud. Now the bike does get louder and does so sooner than the truck and both are quieter than harleys but you get the idea. Which leads to some bikes the noise is “part of the brand/identity” Harleys these days are built very intentionally to sound like they do.
TLDR: same reason fast cars are loud: it’s fun. (generally)
Latest Answers