That’s a perfect example of why A1c alone is not a good measure. Your A1c rose, but you cut down on the dangerous lows you were having as a result of the CGM. I’ve had a similar experience - though CGM was only part of my story. I had to move to a pump to eliminate the regular lows I was having. Results - my A1c went up from 4.9 to 5.6, but virtually no lows.
(And yeah, I still want to get it a bit down from there, but, hey - doing OK!)
Congrats on the success!