I suspect this failure was caused by a loose nut in the saddle.
A chain is very easy to break if you shift under load. You need to finish your shifts before you are climbing the steep hills. It is possible that the plates on this broken link were peeled apart some time before the eventual snap, and it just chose that moment to let go. But shifting under load is a primary cause.