Why is a cancel "X" icon required if there is already a "Cancel" option in a modal?

We are following this pattern, inspired by Mac and Windows OS, but I don't have a solid answer for why web apps use it. What is the importance of the X button? Is it really required?