Miracast is built over wifi. Wifi is used just as a means to transfer data. Other Applications and/or protocols just use Wifi services to transfer data, and they can run side by side. Think of playing a network game at the same time using voIP. Miracast is just one of those many applications.
For more details take a look at the OSI model. Here's a link: WiFi on the OSI stack
Miracast is somwhere on the above layers, I am not really familiar with the standard.