This concept seems complex to new developers, but it can make your life easier as a developer. Object Relational Mapping simply helps you to write queries in the language of your choice. In this technique, a database query is converted into an entity (Entity is an object database table that contains attributes that are mapped to columns of a database table) class inheritance.
Most of the time we don't need ORM in the case of smaller projects, where we can use SQL statements to drive our application. But ORM is very useful for large-scale projects that obtain data from a large number of database tables.