It’s really not.
http://dictionary.cambridge.org/us/grammar/british-grammar/relative-clauses-referring-to-a-whole-sentence
http://www.grammar-quizzes.com/clauses-9.html
https://www.ego4u.com/en/cram-up/grammar/relative-clauses
That’s the whole point of relative clauses.