I got the idea from wanting to spawn gas pumps to test vehicles without having to spawn gas 100 units at a time and wanting to spawn walls instead of spawning lots of two by fours and nails. Being able to switch one tile with another is a pretty useful cheat/debug feature though, since it could be used to test whatever terrain configuration someone would want.