You want to make sure you're never spending more than you have, to keep yourself out of debt. Unless you're trying to build credit, you don't want to go into debt.
Keeping track is very smart, it helps you budget, and in cases where you use a debit card that takes several days to actually take the funds out of your account, it helps you make sure you're always able to pay for what you buy.