There is a theory that has been bouncing around for some time that the Egyptians and Mesoamericans had influence from Atlantis or aliens when they built their pyramids.
The problem is that the two kinds of pyramids had totally different construction, and apart from that, they had different purposes. They Egyptian pyramids were made to honor a pharaoh, who used the monument as a tomb. The Mesoamericans used theirs as temples in honor of the gods.
Besides that, the Egyptians built their pyramids thousands of years before any Mesoamericans had even thought about making a building above 1 story tall.
Yes, it is just a coincidence.