Thank you!
Decision variables can very likely be more than 2. But it is hard for the human brain to visualize if there are say 5, so we stick to visualization 2 dimensions. There is software out there that does the hard work and solve optimization problems with large number of decision variables.