The Product Owner is typically sourced from a discipline that has a level of domain expertise for the Product they are working. Potential sources include:
If the domain expertise is not available then the person needs to have “Domain curiosity”; a willingness to dig in deeply to understand the (potential) customers.
In general, it is easier to train someone with domain experience how to be a Product Owner than it is to teach a generic Product Owner the domain.