I believe it's because peak wavelength isn't equal to 1/T but it's proportional to it, meaning there is a constant involved in the formula. The constant being approximately 2.9*10^-3. So technically the formula would be peak wavelength = constant/T.
I hope this helped a bit if there's something you don't understand I'll try my best to clarify further.