The story
From postcode (“a sequence of letters and numbers added to a postal address to aid the sorting and delivery of post or mail; a region denoted by a postcode”) + lottery (“something decided by chance”), referring to the fact that whether one is in a locality which receives adequate services is a matter of chance.
Etymology from Wiktionary, CC BY-SA 4.0.