Nonlinearity as a resource for nonclassicality in anharmonic systems