Secret Invasion reintroduced G'iah as a revolutionary trying to fight for the betterment of the Skrulls on Earth. This meant working for and against Gravik, a radical Skrull trying to rule the planet by inciting a world war. This led to both gaining the powers of those present during the Battle of Earth.
Source:https://www.cbr.com/mcu-heroes-villains-beat-giah/