It’s due to so called vowel harmony of Turkic languages. There are technically no end to suffixes! Mind you, suffixes themselves should be harmonized as well.
In your example of “nasılsınız”, as the last vowel of the word nasıl is ı (not i), the following suffix should also contain ı, hence the...