That's a bit like saying "Why buy car insurance? Just learn to not get in accidents" or "Why learn high level languages? Just learn to write assembly code that doesn't suck".
Let me share a secret with you: developers are human beings. They make stupid mistakes.