How were Muslims responsible for inventing algebra?

In the 9th Century, Muhammad ibn Musa al-Khwarizmi, published a book entitled Kitāb al-mukhtaṣar fī ḥisāb al-jabr wal-muqābala (The Compendious Book on Calculation by Completion and Balancing) which brought together the foundations of algebra.