@Ravst To confirm Origin and EA are the same things, Origin is EA's PC platform to purchase/play PC games. However, in creating an Origin account (If you created an account through the Client or Site) or creating an EA account (through a console, or another EA site) will make the either.
So if you were playing Apex on Steam, it would have already been connected to an EA/Origin account. You would have been able to sign into Origin client using that account.
If you then purchase PvZ and tried had linked an account, I would guess either you signed out of the first account which would give the appearance of wiping your apex progress since it would be pulling a new accounts data that would not have progress, or you may have unlinked your first EA account.
I would recommend reaching out to our support with your Steam and EA account information (personas, emails) so they can take a further look into what may be linked where.
EA Help on Twitter
https://twitter.com/EAHelp
Live-Support (Phone, Chat, Email)
https://help.ea.com/en/contact-us/
*Accept as Solution button- If a post answers your question please let us and other players know by hitting this button.
*Me Too button - 'Me Too' helps us track how many players are also experiencing that issue. Definitely make use of this button.
*XP button - Say Kudos and help players 'Level Up' by giving them XP for helpful posts.