Same logic as riding a bicycle _under the influence of alcohol_ is against the law in Japan.
Edit: clarified
Edit: clarified
Fortunately the law is still acknowledging that drunk cycling is much less bad than drunk driving (and often the only practical alternative besides sobriety), so you'd have to go pretty wild to ever get more than maybe a fine. Unfortunately, this view is increasingly under pressure from the kind of "enemy of the good" perfectionists who always ignore the big picture.