The music of Bach is, in one sense, unfree. It is highly structured and every note serves an important purpose; change notes around and you destroy the whole construction.
And yet it gives the impression of being free, flowing naturally from one melody to the next.
Seemingly a paradox: highly structured yet fundamentally free. I think that paradox holds a clue. Freedom and structure are connected.
We can only use reason if we are free to think, and yet arguments lead as if by force to certain conclusions. Political liberty is not brought about by the absence of rules, but by the presence of institutions of consent and error-correction. Beautiful music is composed with obsessive attention to the relationships between notes, but it sounds free and flowing.
Reason, freedom, and beauty all love each other.