You get the commerce, so founding a town on a commerce bonus can be helpful sometimes - I'd found a town on tobacco, for example. I might found a town on a gold hill if food is in short supply, so that I thought I wouldn't be able to work the hill otherwise.
Building towns on strategic and luxury resources also makes it much harder for the AI to disconnect them in wartime.