It was honestly probably the best thing that happened to me. It helped me build empathy and grounded me to accepting that intelligence is only one piece of the puzzle. I'm now working in a position that gives me huge intellectual freedom.
There is a silver lining.
In my specific case, it was a poor rural district with four 20-25 student sections. Mixing up the barely literate and disruptive kids made things harder. In my senior year my project partner in Civics was a fellow senior who basically couldn't write.
The only escape was AP classes -- but we only had AP English, US History and Calc.
As part of "raising standards" they started requiring advanced math. We were unable to compete the material, and I learned a lot of math while cramming for the annual exam -- which in my state was standardized and a key to college admissions.
Not having to do 'difficult' homework was the catalyst that gave me the freetime to work on programming which is another reason why getting kicked out was great.
Not sure why I'm thinking about it or why I'm even mentioning it, but this happened in the same city Ray Bradbury grew up. Everybody in the school was required to read 451, which was treated as a homework with uninterested students' contempt. It's very interesting to be raised in the city that influenced much of his writing.