Some applications use specific ports for network communications.
The application software is "expecting" that data is being sent and received via specific ports.
So you configure the router to use those specfiic ports with respect to traffic (data) from that application.
Here is a very current link providing more explanation:
http
/www.howtogeek.com/66214/how-to-forward-ports-on-your-router/