Categories & groups

What are bookkeeping categories and groups, and how do they work?