They have less plastic and they are recyclable. They go in the yellow bin. Milk bags go in the trash depending on where you live.
Bags have less plastic than jugs (thinner, softer) and cartons are difficult (eg. expensive and resource intensive) to recycle because the inner and outer layers of plastic are difficult to separate from the cardboard.
Source: https://theconversation.com/milk-jugs-cartons-or-plastic-bag...