But more likely it was because red barns just look better against a green field.
I feel similarly. This discussion of dying stars and heavy metals is interesting, and it certainly could explain why barns are often painted red, but I tend to believe that color theory has more to do with the tradition of red barns than the physical state of the entire universe.