The Gym Vending Machine is where you can spend Gym Tokens. There are two options you have at this particular machine: spend a token or kick the machine.
To kick the machine you will have to have a pair of shoes in your inventory otherwise you will recieve a warning message saying that you need to protect your feet. Kicking the machine will either get you a random item or will, the most likely chance, decrease your pets stats.