The mouse system events like MOUSE DOWN, MOUSE UP, etc. use the old InputManager. Newer versions of Unity ship with only the new Input System enabled by default.
If MOUSE DOWN etc. are not working in your project, please enable Both input systems here:
Project Settings > Player > Active Input Handling > Both
Alternatively, use the MousePickEvent action to send mouse events to the GameObject.