”Obligatory” means something that is required, while ”voluntary” refers to something that is done by choice, making it the opposite.