Setting a Spell/Trap is considered an event, so you can respond to it.
If you are not the turn player, you have to respond to something, like "before ending a Phase", after drawing cards, after Setting cards, etc.
Thing's you can't respond when you are not the Turn Player:
When your...