To survive on earth, we need our physical body. Therefore, it is proper to keep it healthy and functioning. But if we are obsessed about making our body attractive to others, then we have become vain. Know that the body is like our material possessions which we'll have to leave behind one day. So we should learn to become detached from it. Take care of your body to serve God well, but never "worship" it for your vainglory.