Some people think that they provided commentary on actions and events that were taking place before the audience.
Secondly, the chorus would allow the playwright to create a kind of literary complexity only achievable by a literary device controlling the atmosphere and expectations of the audience.