They are not required, but may be useful.
Vusb allows the SW to know if the scope is connected to USB or not (for example to show a charging icon).
Vbat (if conected to a A/D input) allows to monitor the battery voltage, so the SW can show the state of charge.
The voltage dividers are required as Vusb and Vbat are higher than the allowed input range (3V).
The pullup at D+ is used to indicate the USB mode when connecting to an USB host.