Select Optimize website option from under Software section on cPanel home.
Under Optimize Website, you will see Compress Content. You can choose any option from the 3 listed there.Choose Compress All Content to enable gzip compression for all content. Once done click on Update Settings and you are done with compression of website contents.