Not sure if anybody has the full answer to this, but I think it’s partially because PHP was one of the first languages that enabled dynamic webpage content. Wordpress (the biggest CMS) was built on top of that and dominated the market. First movers’ advantage, basically.