"How you talk, Huck Finn. Why, you'd HAVE to come when he rubbed it, whether you wanted to or not." (3.13)
The Widow's rules (i.e., society's) are arbitrary, and now we see another system of arbitrary rules: fiction. And Tom Sawyer knows what's up. Genies may not exist, but if they did, they'd definitely follow the rules.