Kids can / often use other family members' smartphones / tablets (I assume it's the majority of cases). How can the law prevent this if parents do nothing about this?
The same way that the law prevents kids drinking their parents’ alcohol - it doesn’t. But having it be illegal sends a signal, even though it’s possible to circumvent it, and also allows prosecution if warranted.
That'd put it in the same basket as alcohol and tobacco. Although the pro/con of owning a mobile are a lot less clear than those two and banning phones in that way is probably a mistake.