That is because there is a likelihood that the opposition party will gain power should the government be defeated in the confidence vote.
According to the Fixed-term Parliaments Act 2011, the government has 14 days to try to form a new government or an early election will have to be called. The new government formed will also be subjected to a confidence vote.
The Act specifies that early elections can be held only:
[ ... ]
if a motion of no confidence is passed and no alternative government is confirmed by the Commons within 14 days.
The Conservative Party is currently in power on a "confidence and supply" arrangement with the Democratic Unionist Party.
It would be difficult for the Conservative Party to find another party to form a "confidence and supply" arrangement. After the 2017 general elections, the Liberal Democrats expressed skepticism on forming a government with the Conservative Party, the Scottish National Party is opposed to the Conservative Party while the Sinn Féin has an abstentionist policy. These are the three parties with enough seats to prop up the government.
After the damage inflicted on the Liberal Democrats by their coalition deal with the Conservatives in 2010-15, the centrist party ruled out any reprise. There was also no chance of a Conservative deal with the Scottish National Party (SNP), which won 35 seats but which is resolutely opposed to the Tories on both constitutional and economic questions. It appears that no one has even contemplated a grand coalition between Labour and the Conservatives, an arrangement that works in Germany but which is alien to the UK other than in wartime.
Source: The Conservation: Can a minority Conservative government survive? Let’s look at the maths
It's also worth noting that it is rare for a party's own MPs to vote against their government in a confidence motion.
Most governments are defeated after the "confidence and supply" party (in the current case, the DUP) votes against it. However, the DUP is opposed to a Corbyn government so they continue to prop up the incumbent Conservative Party government.
Not surprisingly, MPs voted entirely along party lines on the confidence motion:

If no new government could be formed, an early election must be held in which the Labour Party is currently in good shape to win.
As such, either way, the opposition Labour Party will likely gain power should the incumbent Conservative Party be defeated in the confidence vote.