You must need a vector shape/ object to create mask in XD.
In first example rectangle is what masking the fruit image.
But In second case there is no shape to mask the cat.
A picture itself is not a mask! You have to have a vector shape/ object to mask an image, otherwise it simply won’t happen.
And If you think you will include/incorporate an image into ...