>Americans moved there (on invitation of the Mexican government), then when the government of Mexico didn’t act as expected the US supported a war of independence of Texas.
Americans were invited to live in what is what is now Texas by Spain long before there was a Mexican government, to act as a buffer against the Comanche who had decimated Spanish ranches, towns and outposts in raids from the north.