I can’t place boxes on top of each other

in these pictures i’m hovering over the tile of the boxes which for the already stacked ones worked but with the others it didn’t, i’m overall really confused and would love if someone could help me.