Isn't what you're describing called biodiesel? Palm oil, rapeseed oil, etc.
The problem is that however much humans need electrical energy, they need food a hell of a lot more. Electrical energy has to come from the land we're not feeding ourselves from, i.e. deserts, grasslands, rooftops.