The universe was at its hottest when it was at its smallest. As the universe expands, it gets cooler.
Is the expansion of the universe the direct cause the cooling?
I suppose it would be more clear to me if someone defined the meaning of 'temperature'.