Rasterizing in Photoshop is a functionality that helps the users to convert the vector layers into pixels. This is useful as when a vector layer is used to create graphics, line and curves are applied. But when the image is enlarged the artistic visual effects cannot be easily embedded.
Thus, rasterizing is used for transforming this vector data to pixel-based data.