Lactulose converts NH3 to NH4+, which is charged. Thus it won’t cross the GI membrane and causes it to get excreted from GI tract