Bernoulli's equation does not require that the fluid be incompressible; what it requires is that the density along a streamline be constant. This is why the equation can be used for gases, such as air, so long as it is not being compressed along a streamline. This is why the equation can be used for subsonic flight, though not for supersonic flight.