Different types of stainless steels have different magnetic properties.
Although stainless steel is typically considered of as a single type of material, in metallurgy, it actually refers to a group of metals with various properties and chemical color combinations.
Actually, it could be beneficial to consider stainless steel as a type of general term based on the chemical structure of steel.
The magnets are not stick to stainless steel, because its depends on the composition of stainless steel.
The stainless steel which has chromium, has minimum nickel or minimum equal and manganese, then this stainless will become non magnetic..
Austenitic stainless steels like or stainless are good examples of this.
So, those stainless steel contain higher amount of nickel and hence do not stick with magnets.
Hence, due to above mentioned reasons, magnets not stick to stainless steel.