For Kant, space is the a priori condition of external experience. Time, the a priori condition of internal experience.
Space and time are conditions of human experience and hence human knowledge is limited to only phenomena in time and space.
And morals. We get a priori knowledge of morals. And that’s the important thing for Kant.