The term URL rewrite is important in SEO, as it makes URLs meaningful and readable. For example, you want to redirect your customers to particular Product/category Pages, URL of that pages is like http://www.xyz.com/catalog_id/?id=3 then the customer can not reach that Product/Category pages.
How to Rewrite URL Programmatically in Magento 2