And yours isn't? Of course editing a script is a form of co-writing. If he got a credit, that just means it was a bigger rewrite than normal. Look up the dev process behind some of Moffat's co-written scripts from series 8, they're in a similar position.