Sometimes the choice of the encoding is affected by the target audience. Devices like Raspberry Pi can decode H.264 video well enough due to having the hardware to accelerate it. Some new hardware, like the AMD Radeon RX 6500, still don’t support AV1 decode.
Changes like this tend to take time, especially due to hardware development having a years-long lead time.