How does the Fed get money
If you read Fed's balance sheet, you'll see a corresponding increase in its liabilities under various deposits. They simply credit the accounts of institutions who sold them the assets.