Smith was playing the bad cop, trying to test, similar to some earlier conceptions of the devil as tempter and tester. Smiths whole speech is to discourage him, as a test, but maintaining the ruse.
Why make sentient AI? Because humans have started trying to settle the solar system and have quickly learned that they are far too fragile to go to the stars. But we want something, some life or legacy from this world, to make it. Maybe we have learned of some impending threat, maybe even thousands of years away, but one worth trying to get something away before it hits.
Also when you (an AI) die in the matrix your neural network is subjected to a round of annealing to try again in another simulated human body. The whole “crop” are destined for robotic bodies on board the starship being built to go to the Centauri system.