A similar extra could certainly be developed for MODX. However Smush.it doesn't provide a particularly high level of optimization, and sending each image to Smush.it, waiting for it to be processed, then transferring it back could create some real performance problems, especially if Smush.it is flakey. Kraken.io looks interesting, better at least.
There are a handful of command-line utilities that'll optimize raster graphics well, but you either need to compile them and their dependancies or install a pre-compiled package specific to your server's OS. Plus PHP probably isn't the most suitable language for dealing with this sort of task anyway. So I don't think this approach would work for an easily installable, OS-independent package like a MODX extra.
For any graphics part of the site's design, I figure the developer should have optimized these manually and shouldn't rely on a plugin to come in later and clean things up. There are a few nice tools like
ImageOptim for raster graphics or an online
SVG optimizer. If you're using a Grunt workflow there are some comparable Node packages.
Client- and user-added content is harder. Of course you can use an image resizer like
pThumb or
phpThumbsUp to at least create properly sized images for the layout, standardize JPEG quality and convert PNGs to JPEGs if needed, but these do little to nothing in the way of micro optimizations.
If you're using pThumb with Resizer, there is
an option to strip out any EXIF metadata and embedded ICC profile (after converting to sRGB of course). That can save several dozen KB on some JPEGs. Beyond that, JPEGs usually can't be losslessly optimized all that much anyway, maybe 3–5% in my experience. PNGs and GIFs certainly can be, but it seems like a lot of user-added content is JPEG anyway (or should be), so the actual return on development effort might end up being rather modest at best.