Because it is an indirect object in this sentence.
Je is the subject + vais envoyer are the verbs + l'argent is the direct object.
This sentence can stand alone but we want to add extra information.
To whom am I sending the money? To him - lui - this is the indirect object.