Explanation of Why Some Files Can't be Deleted

Sometimes it says some files can’t be deleted. Would like to know why. I can guess sometimes but I wish it was more clear about that.