Pakistan thinks, they will with the help of China would weaken India's stand in SCO. And also divert attention of Russia China in favor of Pak, when it comes to terrorism. Specially dawood, lakhvi and hafeez.
Pakistan is trying to legalize terrorism with the help of SCO.