I only rarely play PvP so I know it was an AI.
I'm in the process of upgrading cards to build a specific deck so, if I left myself short after upgrading a card, I may have played a L1 or L2 to get enough coin to play a L3 again, though I try not to leave myself that short.