Question: what are hit dice used for?
Answer: Hit dice are used to regain health outside of battle. The official rules say: A character can spend one or more Hit Dice at the end of a short rest, up to the character's maximum number of Hit Dice, which is equal to the character's level.