Sorry, I have no idea why. For me this works fine with Windows 11 and Ubuntu 22.04 alike on a Fairphone 4 with Android 12 (Build FP4.SP21.B.048.20230215).
Why do you want “to lead through the wifi signal”? If there is a WiFi network available you don’t need a hotspot, just use that WiFi network on the other device. The normal usecase for a hotspot in Android is to provide WiFi for other devices based on an existing mobile network connection.