Ketones found in urine?

What does this mean my doctor said it could of been bc I didn’t eat no carbs before taking the test ..