The product owner is accountable for it.
This means that they are responsible for making sure that the work is done „correctly“. However, they can delegate the completion of individual tasks to the developers. If the developer they select does not complete the task correctly and/or in time, then the Product Owner is held accountable (is to blame for selection and/or supervision).