You can go to a no-man island and declare your own independence and nobody will care about it.
However, a country that interact with other countries, their independence is recognized by both parties.
Further, as Taiwan is so close to mainland, whether geo-politically, or economically, made it detaching links to China infeasible.