Clarification needed: SQL Injection

I have a question about union injections.

When I do this:
cn' UNION SELECT 1,2,3,4--

It doesn’t work, but when I do:
cn' UNION SELECT 1,2,3,4-- -

It works fine. Why is that additional dash required?