the key purpose of procrastination is short term mood regulation. Meaning, when we feeling bad about what we're working on, we find ways to delay the work and switch to something that makes us feel better.
Whether it's about being overwhelmed with too much work or you have to do a task that you hate; procrastination is a short-term solution to improve your mood