We have an electoral system that is flawed at best. The party that wins is the one that won the most seats. The number of seats in any province is roughly based on populations in ridings, or neighborhoods, to put it simply. However, the number of ridings to be won is much more highly concentrated in Ontario and Quebec. Over-represented compared to provinces like Saskatchewan and Alberta. It's called "first past the post" elections, where the winner is all but determined after QC and ON are done voting, the rest of Canada, and especially the west, have very little influence on the results. Trudeau promised to change this system when he got elected in 2015, but did nothing as the situation benefits the Liberal party.
Not even a third of Canadians voted Liberal; the rest voted Conservative (a higher percentage than the Libs) and other parties, including the NDP. So, the majority of voters voted Conservative, but the Liberals won in more ridings and therefore won more seats, and that's how our PM got elected.
What made everything worse is we have a #3 party that formed a coalition with the Libs, so the 2 groups would have just enough representation in parliament to form a slight majority, and has supported the Libs through thick and thin, scandal after scandal, because the NDP leader gets a $2 million pension if he stays on until the next election in 2025. He has betrayed his voter base as few of them are happy with the government.
Nobody voted for this coalition, but we are all paying dearly for it.
There you have it in a nutshell.
Compared to the USA, I kind of wish we had only 2 parties like Americans do, instead of the vote-splitting mess and coalitions that can form up north here, with at least a half-dozen parties that can influence the final vote to some degree.