That is easy: Something is going wrong in your network.
(If you need more help, you really have to provide more information. Like are they in the same subnet, what do you see on the DHCP server, what does a capture say, can the AP reach the DHCP server, etc.)
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.