adv of searializing java beans

Why do we generally searialize our java beans (POJO) when it is not shared across the appplication, when we are not passing over the n/w, no input output operations. If only purpose of beans is to save the state of object, why cant we save it in underlying db. Kindly explain