That's one, out of many, definitions of "intelligence". But there's no particular reason to insist that that is the definition of intelligence in any universal, objective sense. Especially in terms of talking about "artificial intelligence" where plenty of people involved in the field will allow that the goal is not necessarily to exactly replicate human intelligence, but rather simply to achieve behavior that matches "intelligent behavior" regardless of the mechanism behind it.