A lot of registrars were offering .xyz domains at fire-sale promotional prices (like, $1 for the first year, or outright free with the purchase of another domain). This made them extremely popular with spammers.
The same goes for a lot of other new gTLDs.