When an idiom is just  something that has the form of, has a certain apparent grammatical form but actually occurs just as a single unit of a fixed meaning, so it has no genuine  semantic structure from which you can determine its meaning, for example kick the bucket means die and you don't get that  in the meaning of kick the bucket.