Origin of negative thermal expansion in strongly correlated f electron systems