Search & rescue and humanitarian relief is one of the roles of the armed forces, thats why you have the likes of SAR helicopters in the RAF and US Navy hospital ships. Of course they all have a wartime role too but the armed forces don't just sit around doing nothing waiting for a war.
The RAF no longer operate Search and Rescue helicopters.