Assuming the OP has a T6,
You have two batteries. The main start battery is located in the cargo area and is used for starting the vehicle as well as powering the electronics during operation. The second battery is a smaller "support" battery located under the hood that provides uninterrupted power to the electronics during start/stop when the main battery is being used to restart the engine.
If the voltage of either of these batteries drops too low, start/stop will be disabled. That's the first indication that voltage is dropping. If you don't charge the batteries externally or by driving a longer distance, you may eventually see a low voltage warning message on your dashboard.
The terminals under the hood are used for jump starting the car or charging the batteries. Volvo specifically warns against charging the batteries or jump starting the car by connecting directly to the main battery terminals in the cargo area (they don't want you to connect to the negative battery terminal, but instead use the negative grounding connection under the hood).
Based on my experience, if you connect a charger to the terminals under the hood, the start battery in the cargo area will be charged first. If you disconnect the charger as soon as the main battery is charged to 100%, then the support battery under the hood will not have a chance to fully charge and start/stop may not be reactivated. If you leave your charger connected overnight, you are more likely to fully charge both batteries and reactivate start/stop.
I charge our T6 overnight about once per month and have been doing so since it was new. The car is mostly used for urban trips shorter than 15 minutes, so start/stop frequently stops working due to low voltage. I use a Schumacher charger that initially charges at 30A and eventually switches to a 2A float charge. It also has a 100A jump starter function that I've never used. We are still using our original batteries. Volvo warns against using a quick charge function, but I haven't run into any problems charging at 30A.
If you don't have a garage or don't want to open your hood to charge the batteries, there are float chargers that come with pigtails that you can leave connected to your charging terminals under your hood. The other end of the pigtail is intended to be left accessible from outside the vehicle, and you connect the pigtail to your charger instead of opening the hood. When I've used pigtails on other vehicles, I also make sure to throw a reminder note on the driver's seat so I don't drive away with the charger still connected. Battery Tender is one brand that offers pigtails on some chargers (or as they describe it, ring terminals and a quick-disconnect plug).