This is why learning guitar when I was younger was so difficult to me; people just presented things like "you have to learn these 5 scale patterns" but they didn't really go into why, it was just "memorize this stuff and then you'll be good!", but I hate rote memorization without understanding the underlying principles. I'm old and didn't have the internet back then so I was just learning from various books or friends and it was slow going, but I still see things like this presented in tons of Youtube videos today.
I've since gone back and learned a bit of music theory as an adult and it's been super helpful understanding the underlying principles so I can work things out vs. having to just memorize things without understanding why they work.
I think then you can go practice the various scale patterns and get good at them with the knowledge that you can always work out the scale from first principles if you need to.
Different strokes for different folks though I guess, I'm sure there's an argument to be made for not overwhelming folks with too much theory out of the gate. Not sure if I had started with a bunch of theory if I would have stuck with it when I was younger.