The scaling relations of galaxy clusters and their dark matter halos