"Prior art" means the state of the art at the time the patent was filed. If the patent is really an advencement on the state of the art, and it's not obvious, then first-to-file makes sense. The trouble with not having first-to-file is, that someone could keep their invention secret until a competitor files before revealing their advancements. The point of the patent system in the US is to get people to publish their inventions, so it would be counter-productive to encourage secrecy. By denying protection to un-filed inventions, the patent system encourages openness.