Looking at the metrics used in the ranking, missing is the population equalizer "per capita" - whether it be related to total general population or tourists (aka visitors).
Bangkok has a population of 11,234,000 vs 22.8 million visitors (2023) compared to Pattya 115,840 population vs planned 27 million visitors for 2024.
While Singapore ranked #1 with 0 risk score, if compared to other Southeast Asian cities, Bangkok ranked #2 as safest for tourists.
Bangkok also ranked #1 of the world's most visited cities in 2023 vs Singpore ranked #5.
So subject ranking appears dubious at best and irrational at worst.