If you're an avid Marvel comic reader, then this should not be surprising to you at all.
Loki's character in Marvel comics (and in the eyes of the actors and some directors of Marvel) has always been a genderfluid character. In the comics, a female Loki has existed for quite some time now.
But now, she will be coming to the Marvel Cinematic Universe, through the magic of Disney+.