When you view your wallet, it generates a new address that you can use to receive money. The wallet is able to generate new addresses on demand.
When the miner runs, it asks the wallet to generate a new address for it to "mine into." So even though the addresses are different, they both point to the same wallet.