The tankless water heater only consumes gas when hot water is needed. Older tanks are always running, so they are able to keep that tank of water at a certain temperature - whether or not you have the need for it.
Tankless water heaters also have a much longer lifespan. While traditional tank water heaters last for about seven years, modern tankless water heaters can last around 20 years, if not more.