The main reason was security. The settlers that of the region were mostly Americans that moved to the Mexican frontier for land. When they ultimately declared independence it wasn't so much of forming their own country it was more for making it easier for the U.S. to annex them.