How does poor governance contribute to regime changes in neighboring countries?

The news mentions that regime changes in Bangladesh, Nepal, and Sri Lanka were linked to poor governance. I want to understand the deeper processes through which governance failures can lead to political instability and regime change.