Microsoft account is optional in case of playing Minecraft on PS4. It's just a way to connect with other players from other devices. Microsoft account sign-in is free and is needed for the Nintendo switch so that you can connect with the XBOX app or Android, PC, etc.