it doesn't look like you have a clue about that what this code contains.
so why you're presume addresses should be correct? and why you'd concluded they're incorrect?
I will explain it to you like if you were 5 yo
-1 run the program
-2 the program generate 2 txt files
-3 One contains the generated mnemonics and the other contains the btc bip49 addresses derived from those mnemonics
-4 the addresses don't match the mnemonics generated you can check it here
https://iancoleman.io/bip39/