Cavalry hate to fight dismounted, and typically do so poorly.
I suppose that since all of our battlefields are "wide open", with no tents/carts/huts in the way, that Cavalry might as well be allowed to charge.
French knights often fought dismounted, I'm sure knights of other nations did so as well.