If the SES/CEL/MIL is lit you really do not need a BMW specialized tool or software to read the codes.
OP did not mention what tool was used to read the codes and did not provide Freeze Frame date or Fuel Trim info.
Yes, in theory P0172/P0175 tend to be Rich codes, HOWEVER, there may be some typos and even if you study the Bentley manual closely there are some BWM codes that at least Bentley show
pr translaste as BOTH Lean and Rich codes.
So I would guess the tool originally used likely output the codes in BMW 3 digit format and were incorrectly translated. Most modern vehicles do not run Rich as the vehicles ages and sensors and components age, usually the opposite.
I would be more than comfortable using a decent generic OBDII tool to gather the codes from this vehicle along with Freeze Frame and Fuel Trim data. Even a smart phone App like OBDFusion would be more than adequate to start with and it will give correct info because there is no translation from a BMW specialized code, the tool reads the OBDII PID's directly.