In public law, intention can be important. For ex. a policeman may have discretion to report you for an offence or not. Either might be lawful. But if his action is because he (dis)likes you personally that would be improper. An interested party could challenge his decision.

— Antony Hook 🔶️ 🇬🇧 🇪🇺 🌎 (@AntonyHookLD) September 11, 2019