"Mazowiecki" is an adjective that tells that the town is in the region of Masovia (Masowsza in Polish). There are many towns in Poland with the same name, so it helps to distinguish them by adding on what region they are in. Alexandrow Lodzki is near Lodz, but Alexandrow Kujawski is in the Kujawski region.