Temperature is a dial that decides how much an AI plays it safe versus takes chances with its wording. A low temperature makes answers focused and predictable, which is great for facts and code. A high temperature makes answers more varied and surprising, which is nice for brainstorming or creative writing but riskier for accuracy.
For example, For a poem you might turn temperature up for fresh ideas; for a math answer you would keep it low.