Question: why grand maester pycelle was killed?
Answer: Qyburn killed Pycelle in the show because he had been working against Cersei and Cersei will not tolerate that. Cersei has never been shy about showing her irritation and dislike of Pycelle, so there is no love lost there. Qyburn (and the Little Birds) was acting as a catspaw for Cersei.