Originally, Excel was not designed to be a real database. Its early database functions were limited in quantity and in quality. And because every record in an Excel database is visible on the screen ...
The FILTER function extracts every matching record while XLOOKUP only returns the first result.
Use formulas instead of Power Query for tidy files, with a visible source path and clear parameters that teammates can review ...