I thought that too, but when I actually ran the code I was surprised to find that that wasn't the case. a mimic containing a statue containing a mob was reporting that the mimic's content's did indeed contain a mob. I don't know why it's checking recursively, but it is.

If a mob/living was directly in a mimic that would mean the statue was removed (which is what happens when the statues timer runs out.