The water goes into the overflow tube through the refill hose and into the toilet after flushing. If it doesn’t do this, it won’t be ready for flushing the next time, so this is the reason why the refill tube goes into the overflow tube.