Being shy and being introverted aren’t the same thing, although they may look the same. An introvert enjoys time alone and gets emotionally drained after spending a lot of time with others.
A shy person doesn’t necessarily want to be alone but is afraid to interact with others.