in my opinion if you base what is quality or good music on charts primarily that is considerably more boring. You can find their music not to your taste that's 100% fine but charts really have nothing to do with a songs quality.
The charts reflect how the public perceives the song. If the song was perceived as quality by the average person, it would chart better. That doesn't mean everyone will feel that way, but it does show the general opinion.