The Commanders went from a 4-13 season to a 12-5 one. How did they do it?

Does anybody know the specifics of how this happened and if there's anything at all to take from it or was it just pure luck of the draw