Quick answer:
In a nutshell and much more simple words that may not be as comprehensive, AI is the study of automating intelligent decisions.
In order to train and test the methodologies scientists come up with. They need some sort of a playground to experiment in. A playground is an environment that is inspired by reality and agents are the decision-makers.