Your player level and base health is determined based on your card collection.
The XP bar displayed below your player name indicates how close or far away you are from your next level up.
Collecting more cards and upgrading them will increase your level. The rarer the card is, the more XP you will gain. For example, obtaining or upgrading a common card will earn fewer experience points than obtaining or upgrading a rare card.