Why auto delete the monitoring data(7 days) about es and kibana how to change it

Please see the documentation for the X-Pack Monitoring Settings

The default value is 7 days for all licenses.
The ability to configure that setting only exists in Gold or Platinum.