Apple ID requires proper information of the user and also payment details for purchasing anything from the App Store and iTunes. Apple servers are secure and sorted out for purchasing. At the time of creating Apple ID, you can provide details one of your Debit card, Credit card, PayPal, Apple Pay to make purchasing easier in the future. After mentioning payment details once, you don’t have to provide details of your cards again. Apple never shares details of its users to any other server, but if you are worried about anything, then you could remove your provided details as well.
https://directorybuzz.co.uk/blog/how-to-remove-apple-id-payment-details-on-ipad-and-iphone/