Update is executed for one frame after the script is disabled.
Reproduction Procedure:
Prepare a U# script that outputs OnEnable(), OnDisable() and each Update() log (see image).
Attach this script to the game object and play it in ClientSim.
When this script (component) is enabled, it will be disabled after 3 frames and output the log of each event.
The log in chronological order shows that each Update() is executed after OnDisable().
This also happens when switching "enabled" from other U# scripts, etc. or when switching the active game object.
It seems to have started occurring since Unity Editor was changed to Unity 2022.3.6f1.
Translated with www.DeepL.com/Translator (free version)