They matter within a company for the reasons you cite. They mostly don't matter between companies however.
Why do you think that? Senior, staff, principle levels are pretty standard across the industry, even if some companies call them different things
You don’t think companies look at your past titles when you apply for a job?