question about empty directories in unix system

how is it possible for a directory to be empty and still have a size greater than 0 in bytes...

i made a shell script that shows info about all files/directories and this is what came up
the last one is the size, here its showing 1024
in the for loop i did something like
for h in * .*; do

so i did account for hidden files
text-base,directory,5662879,1024
{
}

It takes space for a directory to exist at all; the directory's name, access permissions, etc, etc. all have to be stored somewhere. Most filesystems parcel up disk space in minimum chunks of at least a few kilobytes, so even an empty directory is given the full minimum chunk.

Also, if the directory used to have a whole lot of files in it, it won't shrink when empty in case it needs the space again.

then how is it posssible that one empty directory has the size 80 while another has the size 1024?

does this have to do with their length of name and inode number?

How are you measuring these sizes anyway?

using this line
echo "$(stat -c %n,%F,%i,%s $name)"

i am able to see the size in bytes
%s does it