PLA absorbs moisture. If it soaks up enough, it cooks out when you extrude it and makes a mess.
You can dry it out in an oven, but you need to be careful to let the oven get to temperature before you put the filament in.
https://all3dp.com/2/how-to-dry-filamen ... and-nylon/