The criminal code is fine. Generally, It presumes release from custody with an escalating plan of restrictions as necessary with detention being the last resort. The problem is “a “risk-averse mentality” has permeated the bail process.” That means that the Crown Attorney and the Justice of the Peace are afraid that someone who they decide to release will commit some terrible crime while on bail they will be held responsible through an inquiry and lose their job. Therefore it’s personally safer to keep people in jail.
“It is a problem across the country.”
Source: Canada’s Bail System Creating A Number Of Problems, Justice Documents