Labour and other party members knew this was a trap. But the real reason they abstained is they wanted to truly rule out a no-deal brexit plan and also to further scrutinize the government.
Boris is now forced to ask Brussels for an extension due to parliament taking over the brexit process. Only then a general election can happen.