The record keeps moving because engineering keeps improving
Materials science, wind engineering, and elevator technology have all advanced enough that buildings well over 500 meters are now structurally realistic in ways they were not a few decades ago. As a result, the tallest-building title has shifted from the US, to Malaysia, to Taiwan, to the UAE over the past century, generally following wherever ambitious construction budgets and modern engineering intersected.
A building, a tower, and a structure are not the same category
Height rankings typically split "buildings" (which must have occupiable floors throughout) from "towers" and "structures" like broadcast masts, which can be taller overall but are not fully habitable. A structure like the Tokyo Skytree, for example, is taller than most skyscrapers but is not ranked as a "building" for this reason.
Frequently Asked Questions
What is currently the tallest building in the world?
As of the most recent rankings, the Burj Khalifa remains the tallest completed building, though several supertall projects are under construction that could eventually challenge that. Height rankings change often enough that checking a current source like the CTBUH is more reliable than any fixed number.
Why do some lists include the Tokyo Skytree or CN Tower and others do not?
Those are classified as towers or broadcast structures rather than buildings, since they lack occupiable floors throughout their height, so lists specifically ranking "tallest buildings" exclude them even though they are taller than many buildings on the list.