Canned coffee is a standard item in drink vending machines.
While the brands stocked vary depending on the vending machine, most brands have canned coffee.
Even if they don't carry cola, canned coffee is often available.
Coffee manufacturers began developing canned coffee commercially in the 1950s. There was likely demand for coffee that could be stored for a long time and enjoyed easily at any time.