Part of what makes chess fun is there are exceptions to every rule. To use your example of castling, in some games it's a mistake to castle! The king is better in the center.
But before it's possible to learn how to break these basic rules, you have to learn the rules to begin with. If you keep your king in the center for no reason, then yes, in most games you will lose.
However, the constraints add depth, not take it away. A writer must use words, must use certain archetypal characters, settings, story arcs. A painter must use certain complimentary colors, shapes, contrast, must use the canvas, etc.
Total freedom means no depth, no creativity.
As for knowing openings and strategies and asking what is there for the brain to work on, it's a similar story. Think of trying to play an instrument you've never seen. Or speak a language you've never heard. Total ignorance means there's nothing for the brain to do. After you learn the structures, patterns, rules, and exceptions to the rules, that's when there's intellectual depth. That's when there's invention, exploration, and creativity.
---
However I sympathize with the feeling. Non-players often think of chess as a test of raw intelligence. However it's not. Chess is more like a musical instrument, a sport, or an art. A game is a performance by two players who have spent countless hours improving their craft. An artist doesn't amaze the audience with a new color. sound, or character but on a subtle variation, an unexpected twist, a genius addition or subtraction of an idea which seems impossible at first.
You may think of a chess board and it's pieces as a blank slate where you can make any move and become victorious but is it? Aren't the pieces all worth a certain amount due to it's versatility and how the game functions? Hasn't it created a game that must be played a certain way or else you will lose? You must open with a real opening or you will most likely lose. You must castle early, you must not bring out your queen too early, you must fianchetto the bishop, fork with the knight, etc. (most of the time). You learn from other's but when you start doing what's not being told in an extreme fashion you are losing. It's like if you are disproving 1+1=2 you are falling in a pit. You must gather advice + techniques see how it plays out for you. You must study the lines and memorize play sequence.
Where is the real brain work going on?