How did the CPR give Canada security against the USA?

Did the CPR help Canada defend themselves against the USA by giving them the ability to transport people into the west? Or did it make it easier to send our troops if the US attacked? Are these reasons correct?? Are there others????
Thanks
2 answers 2