I Blackbody and gas molecule speed graphs look similar. Why?

The graphs of intensity versus wavelength of blackbody radiation and of number of molecules versus speed in a gas look very similar to me. Is this just a coincidence? They seem like quite different phenomena.

The graphs of intensity versus wavelength of blackbody radiation and of number of molecules versus speed in a gas look very similar to me. Is this just a coincidence? They seem like quite different phenomena.

the similarity is that both have a peak....max value.
many physical properties show this behaviour but they are different things and it would be unusual to find a relationship between such different physical phenomena.
eg current through resistance against frequency in an LCR circuit