It's just another way to shoot put there for illustration purposes. Using this method allows you control of the camera after a simulated "half press" of the shutter button in case you want to add code to do something else (like change exposure or focus) before the actual shot happens. There are many "tricks" more advanced scripts do using this method.