The piccolo sounds higher than the violin.
The violin's E-string can sound piercing in its upper register, and both instruments play prominent high melodic lines. But the piccolo's entire design—half-size flute, cylindrical bore, no low register—optimizes it for the top octave of orchestral pitch space.
In a full orchestra, the piccolo often doubles the first violins an octave higher for brilliance and penetration (e.g., "Stars and Stripes Forever" trio, Tchaikovsky 4th Symphony finale). The violin section provides harmonic density and melodic weight; the pico adds laser-like sparkle.