Exhaust pipes must be snaked around different components underneath the vehicle in order to exit at the back, therefore, some bends are necessary.
I read your profile, so perhaps this link may be of interest to you.
https://www.reddit.com/r/AskEngineers/comments/2c6w7f/question_about_exhaust/
Air flows at different velocities within a pipe
cross section . For a well developed ideal flow , the velocity of pipe will be
higher near the pipe's center and decreasing towards the pipe wall in symmetrical
manner.