Myopia is due to
Elongation of eye ball
Irregular change in focal length
Shortening of eye ball
Older age
In myopia, eye ball may be elongated so, light rays focussed before the retina.