Part of it is that there are more choices these days in terms of highly customizable CMSs. I stopped building new WordPress sites when I discovered Wagtail. There's also Payload which I've heard good things about. The other part is that agencies are being squeezed out of the side of the custom website market where WordPress offers appropriate trade-offs. Most agencies that build on WordPress anymore are theme chop shops.