Maybe you're thinking of Etherium or other smart-contract systems, Etherium is a system where things like that happen automatically. With Bitcoin, the only thing you have is a secure (but static) ledger of who (which wallet/id) has what bitcoins. Any transfers have to be "manually" and just recorded by the blockchain.
Of course, the automatic processes in Etherium produce a bunch of other weird effects.