This is part of the European regulation called PSD2 which aims at making online payments more secure. The banks will be required to verify the identity of their customers when their credit cards are being used to make an online payment.
These 3D Secure checks will not be necessary all the time and their frequency can vary based on different factors such as the amount of the payment or the historical data of your payments with your bank.