why does using UnityEditor exist?

if I understand correctly from all Q/A I read

I just can’t use using UnityEditor to build the game

so why does it exist if we cannot use it?

like the bulldog that wants to eat food through glass

The UnityEditor namespace is for creating customized editing tools within the Unity editor. Most of the game play functionality is in the UnityEngine namespace.