Just like I didn't start my Computer Science degree thinking I would end up working with large ecommerce platforms that power some of the worlds most recognisable brands websites.
But here I am.
Most PhD people I've met (selection bias) don't do work that's too closely related to their degree (just like I don't, Enterprise Java dev != comp sci). They do all make a lot of money though.