There is a great youtube video on this and similar can-US border irregularities. Search for "Canada-US no touching zone". There is another exclave near vancouver.
A good friend and his wife, who is Canadian, are really grateful for that loophole. They were able to meet their newborn niece recently because of that park, despite the border being closed.
It is nice that places like Peace Arch Park exist though.