It seems to be a simple case of users re-using passwords for all their services, which explains how someone can log into their teamviewer account, connect to their computer and then proceed to make purchases on amazon, etc.
This is most likely related to the LinkedIN hack from 2012, but someone is now selling that data of 117 million people with decrypted passwords.