No legal/tax reasons. It's a provider specific issue.
I'm in the midst of changing HSA providers and right now the new, smaller one, only has $200 in it. All $200 is invested.
Some HSA providers put minimums on investments. One company I dealt with years ago had a $3,000 minimum.