Probably he developed it from having so much fluid exchange with Ed, like he's meant to be some unusual black snake that can even take over human body and there was a lot about his strong sexual urges and even males liking to get inside females bodies
Anyhoo, him being able to create a womb inside Leyla smhw doesn't suprise me
Or who knows, may be Leyla is also freaking magical, considering his body being able to take all that happen in this chapter, aaaaanything is possible

Did he create a womb during fisting?? Or did leila have a womb already?