Fantasy is certainly big, but it’s not like there isn’t space sf or space opera out there.
Authors in my library who’ve released space sf stuff in the last few years — Anne Leckie, Ada Palmer, Andy Weir, Adrian Tchaikovsky, Arkady Martine, John Scalzi, Martha Wells, James Corey, Lois McMaster Bujold, Max Gladstone, Mary Robinette Kowal.
To be fair, some of them get into philosophy or fantasy, or even romance. But the settings are SF.
And you're not even getting into Baen and Tor books territory, where the hard military scifi lives (David Weber et al).
(Scalzi is always fun.)
Maybe 50% of my audiobook listening is the Expeditionary Force series by Craig Alanson. So dumb, so much fun, and all spaceships.