Tech companies are not like other companies because they can trivially create vendor lock-in without any geographic constraints on where the customers are.
In fact, it's harder to avoid vendor-lock in in tech; it takes extra work to open things up, possibly a lot of extra work.
Even a well-intentioned open-source program can garner a user base which can't easily migrate off it.
Then let's use regulation to flip that around, and put the onus on the party that
a) is making money off it
b) has a vested interest in increasing lock-in
c) is a singular entity, not a dispersed set of individuals
d) is doing this as part of something specific and organized, rather than just trying to go about their daily lives, buying an orange here and a smartphone there