It is how patents work. I can't claim I have a patent just because I invented it first (which I'm sure I didn't), but a patent can't be filled for something for which there is prior art.
You can't go out and patent the wheel just because nobody has filed for a wheel patent before.