Why wouldn't games have guns? If you're going to have combat in your game, it's either ranged combat or melee combat. Starfield has both, why wouldn't an open world sci-fi game have guns?
There's no lack of games without guns. Hell, there's no lack of games that don't even have combat now. You just need to find games you enjoy.