The key there is verse 7, where Babylon the Great is telling herself “I sit as queen and am no widow.”
There is one previous prophecy in the Bible where a city is identified as a widow, and a former queen, and that is in Lamentations 1:1. In Revelation, Babylon the Great is explicitly rejecting that prophecy. Compare this chapter of Revelation to that chapter in Lamentations and you’ll see that is just one of many similarities.