It's anticipatory obedience, "a situation where one attempts to predict expectations others (particularly superiors) have, without explicit communication, and to fulfill (or exceed) those expectations.", see https://en.m.wiktionary.org/wiki/anticipatory_obedience