AmenJesus told us the purpose ...
John 11:41-42 Then they took away the stone from the place where the dead was laid. And Jesus lifted up his eyes, and said, Father, I thank thee that thou hast heard me. And I knew that thou hearest me always: but because of the people which stand by I said it, that they may believe that thou hast sent me.
We have a tendency to read into Scripture something the Author of Scripture never intended ... then use what we "read into Scripture" as some sort of proof text to support a claim.
I believe Jesus raised Lazarus from the dead shortly before His crucifixion and resurrection ... when Jesus rose from the dead, they would remember that He had also raised Lazarus from the dead, so they knew He could do it – this would shore up their faith and they would believe God sent Him ... and they would not fall victim to the lying pharisees who bribed Roman soldiers to claim the disciples had come and taken Him (Matt 28:12-15).
.
also
“And when he was come in, he saith unto them, Why make ye this ado, and weep? the damsel is not dead, but sleepeth. And they laughed him to scorn. But when he had put them all out, he taketh the father and the mother of the damsel, and them that were with him, and entereth in where the damsel was lying. And he took the damsel by the hand, and said unto her, Talitha cumi; which is, being interpreted, Damsel, I say unto thee, arise. And straightway the damsel arose, and walked; for she was of the age of twelve years. And they were astonished with a great astonishment.”
Mark 5:39-42 KJV