Amazon and iRobot announced plans for the e-commerce giant to buy the company. Amazon likely wanted iRobot for two reasons.