Directly connected routes receive the highest preference value of 0 because they represent networks directly attached to the router's interface. This ensures that directly connected routes are always preferred over routes learned through any routing protocol, which have higher (less preferred) preference values.