I mean... I have medical licenses in 5 states and have had in 2 others. That's a LOT of documentation and intrusive questions (all of which get verified), and renewals (every 1, 2, or 3 years for my states) have a lot of repeat questions along those lines. I've never been asked for a list of medications for any of them. Arguably, being on certain medications could pose clear risks in terms of some of some typical medical activities.
I agree that it would be the rare dive operator, diver, or even physician who'd be competent to tell if that topical steroid cream, prescription vitamin D supplement, or prescription-strength oral fluoride rinse would impair fitness to dive, so there's really no point in asking such a question.