@janeadams I disagree with that (to a point). Maybe it doesn't count towards your graduation requirements, but doing a PhD is first of all about growing as an independent researcher, developing your critical thinking and finding your way in (work) life.
Requirements are there and you should of course complete them, but I suspect those other things will be helpful in the future (of course if you spend 90% of your time on things outside your PhD project, maybe you should change your PhD topic!)