I wouldn't say "starving yourself", there's no reason to believe it's different from any other diet (except it's easier to stick to). If you get enough calories, prioritize protein, do some resistance training and get proper sleep, you can minimize muscle loss and in some cases even gain muscle while losing fat.