Each ingredient has a different density, which determines how many grams fit in one fluid ounce. Water is the reference: 1 mL = 1 g.
US and UK fluid ounces are different sizes. US fl oz = 29.574 mL; UK fl oz = 28.413 mL. US is the default for most recipes.