I don't remember if there's an explanation in the show, but I can hazard a guess.
During the episode where we're introduced to Hazard, we see that her luck ability is very passive. Things just go her way to the point where she can casually walk in to a bank and walk out with money without any interference. So it's not something that Devoe can turn off or on. It just is.
Her power also seem to be limited based on what is physically possible. All the good and bad things that happen are possible albeit extremely unlikely (hence lucky). The more her power grows, the more highly unlikely, but still possible events occur that give her good luck while giving everyone else bad luck.
We see this later in the episode with the Casino scene. (Very) Bad luck befalls everyone around her while good luck hits her. All the good and bad luck is still within the realm of possibility. In this case, even more unlikely, but still possible scenarios play out because her powers have amplified as she used them.
So her powers are limited to what is possible. Her weakness would be to put her in a place where nothing good can possibly happen by chance. Enter Devoe's mind which seemed to be based primarily on his memories. Those memories can't be altered, so there is no chance that anything can happen to Barry beyond slight deviations. So he didn't use them simply because they didn't work in his mind.