you probably dont have enough gold
I figured it out. If I attack the other type of enemy, I lose gold.