This is called the illusion of control:
... the tendency for people to overestimate their ability to control
events; for example, it occurs when someone feels a sense of control
over outcomes that they demonstrably do not influence.
Some examples from the same source:
Subjects are either given tickets at random or allowed to choose their
own. They can ...