Bombardier is a badly run company that consistently fails to deliver. Government money kept being poured into them for mediocre results. At a certain point they had to be cut off.
Bombardier Aviation (planes) and Transport (trains) have been distinct since the 80's. The business jets have been tremendously profitable.
Train is a different market. Rail projects are a political nightmare, as every buyer is a government (municipal, state, national) and wants their rail equipment to be manufactured in their jurisdiction. So they can make a big announcement that the X millions they just paid is actually creating good jobs. Then a few years later the job dries up for a designated site (project completed) so the local government keeps bailing it out else they'll get voted out for getting rid of all these jobs!
Plus, of course, every project is custom hardware. And is long enough that it will span at least two municipal, state or national administrations so expect a feature creep/change of requirements in the middle.