Sodium metal is an alkali metal with electronic configuration 2,8,1. It has only 1 valence electrons in its outermost orbit. So, even by absorbing a small amount of energy i.e. from visible light , this valence electron leave the atom of Na and is expelled by absorbing visible light.
This is because the valence electron are loosely bound to the nucleus of atom and are easily liberated by absorbing small amount of energy.