Not quite, the answer is really because it's AI slop (unfortunately), this is the exact kind of instruction leakage you would get if you gave AI this silly idea instead of it pushing back...
It may be either of these, maliciousness, stupidity, or slop.
But tools for games often automatically discover the game location and I, for one, enjoy it when it does. Do I care if it did a file system search in 0.01s? Not really.