Isn’t it bad from a business point of view to achieve AGI?

If the AI becomes sentient wouldn’t you have to give it rights and surely you wouldn’t be able to force it to do things since that would basically be slavery?