You see it as money spent, others might see it as an investment. OP doesn't necessarily say exactly what they use it for, but if education is the goal, $25k and spending your evenings learning about AI theory and tooling is way cheaper than a university degree and can easily result in millions more dollars in lifetime earnings given the current early state of the technology.
Besides, I regularly see people here in HN spend a LOT more than that on hobbies and depreciating assets. A few years back, people with coastal salaries and tech jobs were tripping over themselves to spend $100k on a certain brand of trendy electric car.