Dear Ashish Thakur, the electricity is produced mostly based on carbon fuels (coal, gas and oil) combustion, therefore, these are considered as a primary source of energy. I once have read that diesel engine was a revolution because on the glass of oil you can drive about 2 km...
Electricity is produced from other resources such as coal, wind, hydro as well as nuclear energy. For the production of Electricity a big power plant is to be made and there is a process of producing electricity with the help of Generators. As we are putting so many efforts to produce Electricity by using crude oil as a main resource for generating steam and utilising that steam to rotate turbines which further rotates dynamo in generator. And crude oil can be directly used in engine with some processing of purifying it. Hence Crude oil is considered as a primary energy resources as they share maximum part in overall energy generation.
Primary energy is the energy that's harvested directly from natural resources. Sources of primary energy fall into two basic categories, primary fuels and primary energy flows (see fuel vs flow for a detailed discussion). The fuels in primary energy are all primary fuels. A country's different sources of primary energy are aggregated into a quantity called total primary energy supply (TPES). All of human energy must come from one of these primary energy sources, there are no energy alternatives. Primary energy is contrasted with end use energy (for a full discussion please see primary vs end use accounting. Primary energy almost always needs to be converted through an energy conversion technology to make this primary energy source into an energy currency or a secondary fuel before it can be used
Dear Primary energy is used to describe fossil fuels, the embodied energy of the fuel is available as thermal energy and around 70% is typically lost in conversion to electrical or mechanical energy. Electricity is generated from primary energy and considered as secondary or generated energy. As an example:
World electricity generation by source in 2017. Total generation was 26 PWh.[2]
Coal (38%) Natural gas (23%) Hydro (16%) Nuclear (10%) Wind (4%) Oil (3%) Solar (2%) Biofuels (2%) Other (2%)