I have a theory that in the lore, the gateway portal to the Overworld in the End has always been there. It explains why endermen exist in the Overworld, and explains why an End portal was able to be constructed in the Overworld despite requiring material from the End, fixing the chicken/egg scenario: because endermen came in through that portal
I don't think the torches were always there, but I think the bedrock formation was there and the portal was always active, until the ender dragon was created with end crystals due to the ancient builders' foolishness