aA pitot tube is designed for measuring ram air pressure, but a static port is designed for measuring static pressure.
There are differences between them.
ramRam air pressure is the sum of the dynamic pressure and static pressure.
You can't only measure the dynamic pressure because the air always has static pressure.
So you have to measure the ram air pressure which is the sum of the dynamic and static pressure and then remove the static pressure which is measured by static port.