I believe Chromecast screen sharing requires a functioning wifi network to work, whereas Miracast uses direct wifi (a device to device connection, which does not require a router).
Thus, there are many situations (hotel rooms, for example) where Miracast is much more convenient.
It's too bad...