Word count matters for SEO because it allows for a more impactful coverage of topics, and it also increases user engagement, ultimately signaling to search engines that your content has authority and it's relevant for the user queries.
Longer content allows for more coverage of topics, which will improve your chances of ranking for a wider range of related keywords and providing the users with more valuable information.