Talent, hard work, and connections matter.
Height, maybe, but these actors do well with their short stature:
Many short actors can play younger roles until they are in their 20’s, so it could be an asset.
Sometimes an actor is miscast because of their box office draw and connections – see
And there is this question;
In TV and the movies, camera work and perspective can work wonders with issues of stature.