What is reset MSL and why we use it

hi
I have some questions about reset /bypass msl, What is the purpose of this and why we use it?
2nd, is it necessary to root phone before reset frp, ee or samsung account?

thanks
regards