Because your neighbours complain when you're throwing parties all the time or being loud at night.
That's why it's called a "pub": A public house. It's a place specifically for being loud at night.
If people didn't have neighbours who wanted to sleep, nobody would go to a pub, it would just be house parties all the time. In rural areas it is.