What is the purpose of script section in query report

Could someone help with an example of query report with script in V13

The help from the below link doesn’t cover the usage of script section in query reports

https://frappeframework.com/docs/user/en/guides/reports-and-printing/how-to-make-query-report

Asking myself the same thing. Any idea?