Help understanding open collector comparator
The comparator still has Vcc pins because the comparator still needs power to run.
Also, you are probing the +5V power supply, not the output which is Pin 7. So of course you would always see 5V. Durr moment.