means that
actual events can be more extraordinary or unexpected than anything a writer might invent.
Imagine a case where real events, what actually happens, can be stranger than anything one could have been imagined.; then “Truth is stranger than fiction” fits well.