Here in China (major cities) delivery is often free and when buying from delivery apps there are additional discount available that you can't get when visiting the restaurant.
So basically it's often cheaper to get food delivered to your home than going to the restaurant itself.