While "sheep" itself is a noun, it refers to the animal. "Flock" refers to the collective group of sheep.