Why do many developers assume they won't need to switch to another database or cloud provider?

After encountering multiple migrations between databases and cloud platforms for various reasons, I wonder if developers generally overlook lightweight abstraction layers necessary for smoother transitions or if my experience is unusual.

hey, i can’t help but notice how many devs stick with one platform cause they never think of potential migration pains. do u think adding abstraction layers from the start could ease future headaches? would love to hear your thoughts on managing these transitions.