Well, historically speaking, smuggling was seen as associated with wrecking and piracy since smugglers do a lot of business with pirates and wreckers and there’s a good deal of migration between the various jobs. Hence why death by hanging was the normal penalty – same thing as pirates.
But in Westeros, that’s not in tension with the Wall as a legal penalty. Westerosi law generally considers the Wall as the Plan B for most serious crimes, up to and including murder.