Every TV ships with a unique secret key. Secret keys that are used to do anything other than connect to an Ads server are disabled.
[edit - to be clear, I'm not saying that this is what Samsung is doing, I'm just describing a plausible way how this might get done]
The comment suggests that the behavior of auto-connecting to wifi is infeasible for technical reasons. My comment and the one below it show that this is technically feasible.