Loops-for-in vs for-of

Why for in loop is used in case of objects ,can’t we retreive it using for of loop