* The logos might be under a free license
* The logos might not even be shipped (not a big deal for Perl and Python, which are primariliy command line applications)
* The trademark protection only includes the name, not the logo, and so it doesn't force the owner to defend its usage to keep the trademark.
For example https://www.drupal.com/trademark mentions a drupal icon which is subject to traemark, and a logo, which is not (unfortunately the log link is a 404).