Urea production requires ammonia, and the production of ammonia produces co2 in large quantities. It's not without reason the two are almost always loacted closely
Great point & not so often talked about. Something like 230Mton of CO2 are used each year, a little more than half goes straight to urea production. By contrast only about 10% goes to the food/bev, medical, and other applications we are more familiar with on a day-to-day basis.
plot showing the breakdown with some gov't sources. --> https://www.iea.org/reports/putting-co2-to-use