This is part of a larger phenomenon called notional agreement, in which the grammatical number of a noun phrase can depend on whether the writer conceives of its referent as singular or plural, rather than on whether it is grammatically marked as singular or plural.