The audience knows the boastful king's power did not last
Ozymandias built the giant statue to "warn" his enemies not to try and fight him because he will win. The audience, when they learn that, has already seen that the statue is dismantled and abandoned in the desert. This dramatic irony comes from the audience knowing that the king's power did not last even though he was so overly confident that it would.