It's taking the bed size from M208 from the object model.

https://docs.duet3d.com/en/User_manual/RepRapFirmware/Object_Model