If clicking doesn't work, open the iTunes app and see what's up in your account settings. You may need to supply a payment method.
You usually need to have added a valid payment method to your account. Even to re-download or update apps and for free apps. You can find the acceptable payment methods for your country here;
Payment methods that you can use with your Apple ID - Apple Support
M1 Mac mini, macOS 13.5.2; Watch, series 7 GPS/cellular, watchOS 9.6.2; iPad Pro 2nd Gen, iPadOS 16.6.1; iPhone 12 Pro, iOS 16.6.1; TV 4th Gen, tvOS 16.6; HomePods, audioOS 16.5 and Airport Express w/ Airplay 2