My understanding is that macOS/iOS HIG specified at some point that search fields should have rounded corners, but other text fields should have squared-off ones.
Yes, the whole thing is super Apple-specific and doesn't make any sense outside of that context.