For which purpose was ʿilm al-maʿani established?

Speaker Balagha, the Foundations of Discourse Eloquence and the Three Arts