Fasting does not have to be for spiritual reasons. It can be specifically for obtaining a healthy body and mind. It is not damaging to do a fast specifically for weight loss. If you do it purely for weight loss then the improved health is thrown in as a bonus!