This setting is part of your scheduling rules. By default, its optional to provide a phone number for booking appointments. You can make the phone number a required field.
Step-by-step guide:
Go to your admin page.
Go to Settings > Scheduling rules
Use the toggle button “Providing a phone number when booking is” to make the phone number required.
Save when you're done.