How to install a distribution on Docker using ddev composer command?
Note difference. First the official command.

ddev composer create ...


And now the command you executed.

ddev composer create-project ...


See? DDEV provides its own command to create a project. So just adding ddev in front of any composer command doesn't always work. Instead it's ddev composer create ....