I would assume they have (or have access to) a computer fitted out in a research lab or something which would be seperate from their "gaming rig".
If you are into the topic and want to work on things outside of assigned projects or course work, upgrading a personal machine doesn't seem far-fetched if you can make room in the budget for it. $700 isn't cheap, but doable for many as a one-off purchase if they want it.
Those who are predisposed to buying & installing high-end graphics cards are likely to be either gamers, interested in machine learning or both
While I'm sure your statement is true for persons, I doubt its true for the computers themselves.
Most people I know who got into the field via gaming were either completely incompetent and have since left, or do not label themselves as 'gamers' anymore.
Who are the majority of machine learning researchers? PhD students in CS (aka majority male) between 22 and, what, 26 years?
What percentage of male computer science students between 22 and 26 years DOESN'T play games?