Why is “mood” used to mean atmosphere in Japanese?

E.g. in Japanese a restaurant can be moody, and that’s a good thing!

According to English in Japanese by Akira Miura, it came from the expression “mood music”.