It's a tradition that dates back to 1813. After the Battle of Lake Erie, Canadians developed long, extendable, mechanical arms to reach across the water (which they could no longer control through conventional naval forces) and raid American territory for potatoes (for making poutine).
This video is very accurate.