I'm not sure how free Mexico was at that time, but they did try to ban slavery at least, something that Texas wasn't quite so keen on. Admittedly, though, it was probably much better for everyone in that region to be part of America, rather than Mexico, in the long term.