Then they call your local law enforcement with an anonymous tip about this suspicious dude who's long overdue for a totally random home inspection.
Making it illegal even without having a realistic means of enforcing it still chills behavior, and so just because it isn't practically enforceable in the general case doesn't mean it isn't without consequences.