The task of both WordPress and Wix is to build a website. Now, the difference lies in how they do it.
WordPress is an open-source CMS that allows you to create a bigger website with multiple pages and extra functionality. The tool has a steeper learning curve and requires you to buy separate hosting.
Wix, on the other hand, is an easy-to-use website builder with a drag and drop template solution for creating a website.