Just because they look similar doesn't mean the people had contact, cuz we have evidence of pyramid-like structures (mind you, not pyramids) that look totally different. Chinese temple tops and South Indian temple tops are both pyramid-shaped, but look absolutely different from each other, for example. The thing is, there is far more evidence of architecture of different cultures being different than similar, but whatever little similarities can be found here-and-there (like the one in this meme, for example) are used by conspiracy theorists and shows like ancient aliens to gain attention. They're not a bit interested in knowing real stuff and diving deep into the subject of history. All they do is seek attention.
I'm not saying you're a conspiracy theorist so don't feel offended, but you've probably been convinced about these conspiracy theories to some extent. A few cultural relations here and there between supposedly uncontacted cultures doesn't establish the fact that there were ancient high technology/ancient aliens who were even more technologically advanced than us. If you actually study history, you'll find out the real facts, and what actually happened. Being someone who's aspiring to pursue ancient history for my higher academics, I can confirm this.
If what I said still doesn't convince you, I suggest you watch Dr David Miano's series on 'Myths of Ancient History' on his YouTube channel, 'World of Antiquity' (not promoting his channel, simply recommending), where he was quite a lot of videos where he debunks the conspiracies on ancient advanced technology. Here are the links to some of them (btw Dr Miano is a historian specialising in the ancient near east himself): https://www.youtube.com/watch?v=xHvZH9m7ano&t=355s
https://www.youtube.com/watch?v=XP2d3Zx6C0Y
https://www.youtube.com/watch?v=asJneqxPnjU&t=655s
(just copypasta them, can't send hyperlinks on imgflip eh)
And always remember: 1 minute of Ancient Aliens watched is 1 precious minute of your valuable life lost.