Why is that horizontal pipe so long? Why not just straight up right away?
Building code.
Yeah it's stupid. Sorta..
OK it goes horizontal off the heater because I don't want to have a leak-prone nightmare on the roof.
Directly over the walk-in door is the most convenient and practical place for it.
But...
Heater needs 18" of clearance behind it.
I don't want to put a hole in the roof or build a complicated fireproof passage through the drop ceiling.
Exhaust run, when horizontal, has to be 5 feet minimum (max 30 feet but subtract 5 feet for every 90° elbow used).
Exhaust flue termination cannot be within 4 feet of any door or window (including the rollup garage door), or less than 4 feet below a soffit.
Bottom of heater has to be at least 8 feet from the floor.
With an extra $55 elbow, I could've gone north inside the barn, then straight out. But the 14" wide minimum area for the thimble would've coincided with a wall stud I already put up, once I reached 4' past the door. So this was really the only way to do it except turn south and go all the way to the south wall but then it would be subject to turbulent wind, cost an extra $200 plus $50 for a backflow preventer, and be in the way and subject to damage while I'm working on the east wall.