If Jesus could do miracles as a child, why didn’t he raise Joesph when he died? answer: It was before His ministry started.
That's certainly an answer, one that is validated by His verbal response to His mother at Cana. However, one could posit additional reasons with respect to knowing and implementing the Father's will, which was after all the key reason for His ministry in the first place. If He determined that God wanted Joseph dead, He wouldn't intervene. In that sense, He couldn't raise Joseph because, as He claimed explicitly, He only did what the Father told Him.
And why didn’t Jesus help this or that or the other person? Again, not in scope for His earthly ministry. God has an overall plan. From character witness of God, the plan does not fail to offer salvation to any soul that would be willing, though the offer is very widely refused among humanity.
Or, because it would have interfered with God’s plan.