Amperian loop to measure solenoid's magnetic field
If you could do that, then you could also superimpose the contributions from the vertical plane (the plane normal to the sheet of paper) to get B=4μ0In. Or again at every degree around the coil for B=360μ0In. Which would be ridiculous.

Instead, if you look at that row of conductors within the orange loop, consider that it is symmetrical; the field below it and the field above it (from the infinitesimally thin sliver of conductor passing through the paper alone) would be identical. (Correction : the magnitude would be identical; the direction would not!)

Integrate the field from all those slivers around the entire coil and the total field inside the coil is B=μ0In. There are exactly as many "lines of flux" outside the coil, but distributed over a much larger area (theoretically extending to infinity), so the external magnetic field is relatively low.