ref
Middle English: probably from obsolete byrlaw ‘local law or custom’, from Old Norse býjar, genitive singular of býr ‘town’, but associated with by.