Since he was slowly dying from kidney failure anyway...but whoever gave the order to kill him thought that it was a good idea to make him also a martyr.
One of the few bad mistakes of Obama, but on the other side, especially the Republicans (who didn't wanted to touch that hot iron themselves, those cowards) would had went ballistic if he had "only" arrested bin Laden.