At the time the government chose to join the institution, certainly the United States' position was well known and was considered alongside the beneficial aspects for Canada of joining the institution. I can't speak for the specific reasons that the Government of Canada chose to make the decisions it did, but there certainly are benefits for being part of the institution as well.
On December 11th, 2023. See this statement in context.