Wake-up of the device from low power sleep modes as most devices offer a special pin(s) for this purpose
Entering bootloader mode of the target
Other user interaction, this is not the main reason why we have the button but when we have it we can use it for other purposes as well