Temporary differences arise in accounting when there is a discrepancy between the tax base of an asset or liability and its carrying amount in the financial statements, leading to deferred tax assets or liabilities. These differences are expected to reverse over time, aligning accounting income with taxable income in future periods.