Why label encoder is not used to convert string to integer

why we don’t use straightly label encoder in first lesson why we convert firstly to categories then using proc_df then label encode it.