How to separate "mouse" and "trackpad" settings?
I had the same problem when I started to use macOS.

I installed this little utility, which lets you reverse the scrolling behavior only for the mouse:

Scroll Reverser for macOS