Valgrind only runs under Linux. Code::Blocks is not a Linux IDE, but a cross-platform IDE. Therefore,
its components have to work on more than just one platform.
However, you are welcome to write a plugin for Valgrind. Even though it will still only work for Linux, it is surely a valuable addition.