Science fiction has ALWAYS come with a sizable dose of social commentary.
Shelley was writing about the dangers of poor empathy and pride in creating new beings, with Frankenstein.
Wells was talking about the arrogance and inhumanity of colonialism when he wrote "War of the Worlds".
Even Verne, who was relatively apolitical, gave us Nemo, who was anticolonial.
Heinlein's politics were loud, if not always consistent.
Asimov's main political interest was that science itself should matter.