Why does a Mongodb collection have more size from PostgreSQL table size

dataSize gives me the same result with collstats.size https://docs.mongodb.com/manual/reference/command/collStats/#std-label-collStats-output so i thought its the same thing.