A RAV4, like most crossovers, is a car with slightly more headroom. Not really a fair comparison.
Compare it to a 2022 4Runner and you'll see that gas mileage is very similar.
Toyota is known for their top tier reliability and mid to low tier gas mileage and tech.