Some of the factors that lead to contracting HBV are not preventable by choice. It is a virus that is spread by sexual activity, sharing needles, from mother to child, and from improper needle handling by medical professionals. The latter two (contracting at birth or from malpractice) don't allow any choice for the person who receives the virus, and there is nothing you could do to prevent it from happening.