is likely caused by the temperature and humidity variations when the windows were installed. get some caulk and put a little to seal it..
The crack on the exterior is an indication of poor workmanship.