Why give machines intelligence and thereby the means to overthrow you as the dominant civilisation on Earth? To advance the plot, of course.