Microsoft account helps connect to other devices such as PC, PS4, phones, etc., via Nintendo switch. It is not necessary if you are playing on PS4 only. It is especially useful if you want to connect with players on other devices. Microsoft account setup is free.