The best explanation for why the Mexican government allowed Anglo-American settlers to bring enslaved people to Texas is: The Mexican government wanted Anglo-Americans to buy land in Texas.
Initially, Mexico encouraged settlement in Texas, including by Anglo-Americans, to promote development and secure the territory against potential threats. Although Mexico had abolished slavery in 1829, the government allowed settlers certain freedoms to attract them, which included the allowance of enslaved individuals until stronger regulations were implemented.