The Cyclops does not live by the same rules and customs as the Greeks.
It is easy to comprehend what he did to Odysseus and his men. He was going to eat them therefore we can see he was not very hospitable and hospitality was very important to the Greeks, especially to the God's.
Hope this helps!!!:)