NPN understanding base emitter voltage

Hi, i try to understand the following circuit. Especcially transistors circuits. I have a question. When the output of comeprator U1 is high. the base voltage of transistor Q1 is also getting high, which leads that V4 can flow to ground via Q1. I had a discussion with a friend...