Vegetables can have a very high energy content, think of a plate of chips.
What is problematic is the concentration of protein which tends to be low in vegetable matter, again, there are exceptions such as peanuts, but on the whole we depend upon animals to extract and concentrate the protein...