A raw 1080p video stream requires roughly 1.5 Gbps of bandwidth. You cannot send that over Wi-Fi. H.264 compresses that stream down to 4–8 Mbps while retaining 90% of the visual quality. It does this using techniques like: