This is a basic Herbie Overflow system.
One Drain takes the ALL the flow for the tank... the 2nd pipe is above the waterline in the overflow box. Should the main drain get blocked, the water level with rise, once is rises over the emergency, that pipe will be able to handle all the flow as it is straight through without any valves..
