Many problems need both ends. One example: custom electronics collect sensor data in real time, and a central machine processes it with math and AI to support decisions or forecast what comes next.
AI can also run on the hardware itself. In my current project work at ZHAW, a camera feeds a neural network I designed and trained, running on an FPGA. It finds two sticks in each frame at up to 120 frames per second and steers a game on a screen, in about 15 milliseconds from the arriving frame to the updated picture.
Where a project needs both, I build both ends.