The boundary layer is the region in which the continuity, as expressed by Bernoulli's total energy equation, no longer holds due to viscous transfer into the skin. Look up a textbook yourself, buddy. Now, if an icthyoid body of fineness ratio 5 did not have a boundary layer, the pressure recovery - suction back to the point of maximum cross-section, increasing pressure thereafter - would give no net drag. At the outer edge of the boundary layer - by definition - the local static pressure is changed by total energy effects, and the local static pressure is not the free atmospheric true value.
At the inner edge of the boundary layer - the laminar sub-layer, look it up - the local static is indeed very close to the true static. At the outer edge, it is totally at the mercy of the free stream velocity depressing the local static to compensate for the dynamic pressure, which is an expression of conservation of energy, or more accurately - wait for it - CONSERVATION OF MOMENTUM!
look it all up.
Hoerner, "Fluid Dynamic Lift"; "Fluid Dynamic Drag: Theodore Theodsen, "Thin Airfoil Theory"; Lanchester, "Aerodynamics"; any university course on Thermofluids