Machine learning was widely considered to be a subset of AI, until it got a big resurgence almost 2 decades ago. Now some people use the terms interchangeably.