You absolutely need an Xbox Live account (Gold/Game Pass Core/Ultimate) to play online on Xbox. An EA Account is separate, optional, and only required for EA-specific services.
No Xbox Live subscription = no online play (in paid games). EA Account = extra features for EA titles. Get Game Pass Core or Ultimate first; link EA Account only if the game prompts you.