Cheese and butter have very little lactose, and yoghurt has only a quarter of lactose content of milk. In many human populations without lactose tolerance, preparing these was actually a way to consume milk they couldn’t drink directly.
Some cheeses are supposedly lactose free, but seem to cause the same effects.