That is because it is impossible to create a law for the behavior of every single different gas, so creating laws for an ideal gas helps us understand the basic nature of gasses which might or might not differ slightly or a lot. By understanding how an ideal gas works, we can understand how a normal gas works.