 Whereas the later works, they would have claimed to have been written by one of these. It was a common thing in the ancient world to write something and then claim the author had been some famous person from long ago and far away. And the Gospels don't claim that. They don't bother to say who wrote them. Now, we say the Gospel according to Matthew, but that we added later.