Non-fiction can inspire fiction. How things are made, for example, can trigger ideas for how things would be made in your fictional settings and the characters who would make them.
Equally reading up on science that interests you or a period of history can trigger ideas for characters.
I've always found getting a character in my head is a surefire way to spark story ideas.
So having a reasonable general knowledge, fuelled by non-fiction reading, is a useful "pool" to fish in for story ideas.
And as ever, the wider you read the bigger your "pool" to fish from.