I think that it is safe to "assume" that one possible entrance to Termina was the tree link fell into. It may have been that there was a portal there or that there are others portals; or maybe that Skull Kid made the portal though that is even more unlikely. Who knows? but everything before that...