Other than UVA protection, another strong consideration is that wearing sunglasses usually allows faster adjustment to night time conditions. If you have been in bright light during the day, your transition under darkness will be longer. It amounts to a mild and temporary form of night blindness.