What is the importance of maintaining a trading journal?

Why is it important for traders to maintain a detailed trading journal?,