The engine pylon is used to attach the engines to the underside of the wings.
The mast is streamlined to minimize aerodynamic disturbance.
The pylon is fixed directly under the canopy, so it contributes to the aerodynamics of the wings.
Engine masts must also be airtight in the nacelle area.
This area is subject to enormous mechanical stress induced by engine thrust. Structural deformations are quite considerable.
Joints must therefore bridge significant clearances. As the aerodynamic surface has to be as smooth as possible, seals with a lip on the outside are used.