I was thinking the same, which might make Judith a valuable commodity that people would try to kidnap. Another possibility is that Rick offers up Carl to Negan to be the one he kills, knowing that he's going to die anyways, so why not use him to stop the fighting and give him a meaningful death. That's why Carl told Negan to kill him if it would end the fighting.