Sunfish, the answer maybe enclosed in your question.
The grass was sprayed, thus changing the birds habitat.
Their habitat would be their shelter and maybe their food scource, ie grass seed, bugs, grubs etc. All of this would suddenly changed post spraying.
The flock probably got on the...