Your guess is exactly right, to get the project over with. Though I had thought about leaving several times, the other projects I've worked on are not so bad. Plus the company is fantastic.
In that case, it might be called 'Hope Driven Development' as your hope of getting good/not-bad projects exceeds the opportunity cost of leaving the company, and thus accelerates your development.
...or DDD -- 'Dream Driven Development' ;*)