I don't think you can talk about Microsoft so monolithically. I would agree that XNA was to keep people Microsoft-focused, but the XNA team has been disbanded since around the release of Windows Phone 7 or maybe a little after--I wouldn't be surprised if its demise is political.
I always assumed that XNA was a play to keep indie developers invested in Windows/Xbox.