I don't think it's ever about 0% taxes. It's about making governments compete for customers who have a choice of where to spend their tax dollars, and would prefer more bang for the buck.
Well, they're joining that virtual country by choice. People frequently enter partnerships where they don't like the counter-party, but they realize the partnership makes sense for both of them.