I think the real answer is the simplest. Crazy man decided to kill President Trump. The protection simply failed by incompetence at the local and federal level and Murphy’s Law had its say.
I wanted to believe that at first, but it was way too lax, and with consideration of all the nefarious stuff over the years they have done to him, I think this was their next step.