America doesn't defend taiwan for its semiconductors - it's all american IP anyways. They defend it for the same reason they defend japan and Phillipines - to control the pacific "frontier" these three countries form before guam. Typically against China, but they would do the same nonetheless.