Yes, microsoft does hand $2 to the broker. But think of it this way. Let's say you own a business worth $100(for easy math). You now pay out $2 to yourself. Is your business still worth $100? No, it's worth $98 because you just took $2 out to pay you.
Hope that helps.