Why is patching software important for security?

Why is patching software important for security?