Because your phone number 'belongs' to the carrier. Wifi calling/texting allows you to use the same phone number to make calls and send texts whether you're on wifi or not.
You can use other apps like Skype or text free to call or text on wifi, but it would be with a different phone number.