Costa Rica has the same population as Metro Toronto and 15 times the rate of violent crime. It might be better than some of its neighbors but it doesn't remotely compare favorably to Europe or Canada.
And Canada likely has better reporting as well (because countries with low crime usually tend to have better reporting and countries with high crime tend to have worse), so the true difference may be even higher.