When is an omitted act a crime?

In Canada, Every one is a party to an offence, who [...] omits to do anything for the purpusoe of aiding any person to commit it. (section 21 Canadian criminal code)

There are other instance when omission is a crime (eg. parents not feeding kids, etc..)