Most likely the town didn’t have enough money in the bank to pay the upkeep cost.
The owner of the town will get a message if the town doesn’t have enough money to pay the upkeep cost for the next day.

If this wasn’t the case and you believe this is a bug, then send a message using the form here.