Automation not captured when using ModWheel

When using my ModWheel for writing automation to track, I can see the slider in the Vst moves accordingly, but nothing is written to track.
However, when moving the slider in the Vst by using the mouse, the automation is written to track as expected.
Any suggestions to why the Modwheel is connected to the VST but not to Cubase (11 pro)?