We discussed this in previous threads. As I mentioned then the answer is the same. Hashem, being outside of time, had already dictated that certain actions lead to certain places. A person can either avoid them with certain actions, reach them slowly by other actions, or spead themselves into them with other actions. The time Noach's generation sped themselves into the direction even when Noach had tried to warn them for almost 100 years. Sodom and Gomorrah refused to set up socially correct and judicially correct courts, thus they sped themselves in the direction where the didn't even have 10 men who kept the 7 mitzvoth correctly. We also know that corruption in the justice system is a sign of social collapse.
Further, Lot's sons. We all know that associating with the wrong people and choosing to be in the worst place at the worst time can affect a person. Further, the oral explains that Lot's son in laws were fully integrated into the Sodom society.
Recent events are classic examples of this. Maddoff and FTX are good examples of people suffering because they were connected to the wrong people. Those people go down and they take them down with them.
The video below is a lesson from Lot's involvement in a city that had social and judicial injustice. This company was able to get out of the SVB system before things fell apart because they were warned, lik Lot, and didn't just there and let it ride.