Your measurements are correct, MIDI is an “active low” (UART) serial protocol.
Pin 4 is pulled up to 5V via a 220 ohm resistor and pin 5 is pulled up to 3.3V via the microcontroller’s data pin (through a 100 ohm resistor in series).
(Image from 5-pin MIDI IN/OUT for Arduino - Sand, software and sound)