it's a half truth.
a compatibility layer will always be slower than bare metal but main systems tend to get bogged down with excess software and general use.
A VM will be optimized for the 1 thing you need to run, and maybe even use a snapshot so it's always the same system at max performance.