why does my toilet have two overflow tubes and a refill line that tees?
It's a line to fill other traps that may run dry when not used. Every time you flush some water is diverted to top up the traps and prevent a sudden stink of sewage.

These traps that need topping up would be for example the floordrain in the basement or the drain for a water heater safety valve.