Asking "why downvote" is allowed, but not recommended, especially for the experienced users. For the new users, asking for feedback may turn out to be constructive.
The similar question from the main meta:
Is it now discouraged to ask for reasons for downvotes as a comment?
One of the main moderators considers such comments as noise and flaggable for deletion:
I flag them on sight. IMHO, they are noise at best, and potentially harmful at worst.
However, that answer is based on the assumption that the user may have written bad contents. But when someone writes something good, and still receives downvotes, then the user may tempted to ask, "Why"!
In such case, in the same post another good answer states:
Given that the comment has no way of notifying the person who down voted, if the down voter didn't feel the need to add a comment when they voted initially, the chances of them just strolling by later on, seeing that the answer author posted the comment, and thinking "Oh, I should leave a comment" are pretty slim.
Hence, in either case, such comments are not useful and should be avoided.
Also see, from the SO meta:
flagging “Why the downvote” comments [duplicate]