Here's why:
* Direct objects receive the action of the verb. In this case, the verb is "sang," and the thing being sung is "a song."
* Subject is who or what is performing the action. Here, the subject is "Will and Maria."
Let me know if you'd like to practice with more sentences!