It is no use crying.
It is expensive running this car.
It is a waste of time doing this.
Why we have this pattern of sentence construction? I more often meet with some sentences have similar constructions but with to-infinitive. As far as I know, there are not too many exceptions, only when the adjective is useless, pointless, great and the like. Does this have a rule of thumb, or I can only keep these in mind.