Where does “ความชั่ว” come from?

ความชั่ว (Thai) comes from Thai ความ, from Proto-Tai ɣwaːmᴬ — matter.

Ancestry of “ความชั่ว”, step by step

ความชั่ว traces back through two separate lines of ancestry.

via Thai ความ

StepLanguageWordMeaning
1Thaiความaffair; matter; content; essence; subject;...
2Proto-Taiɣwaːmᴬmatter

via Thai ชั่ว

StepLanguageWordMeaning
1Thaiชั่วbad, evil, wicked; base, low, mean; ill, objectionable, unsatisfactory, poor, faulty; hostile, unkindly, unfavorable, adverse
Every word from Proto-Tai ɣwaːmᴬEvery word from Thai ความ