The source refers passive-subject number and gender agreement back to the fāʿil rules.

Mafʿūl Mā Lam Yusamma Fāʿiluhu — The Passive Subject