To what extent beliefs are voluntary or involuntary is a major topic of philosophical dispute: https://iep.utm.edu/doxastic-voluntarism/