It is derived from the phrase "Hocus Pocus". Beacuse it seems like you perfomed magic when you complete the task.
You: Nope, I haven't even started yet.
Friend: Are you serious? It's due next week.
You: Yeah I know. I'm going to have to go into Focus Pocus mode this week-end if I want to get it done.