He's doing what he feels he has to do to retool his team going forward. The cycle of a small market team with a good GM is to rebuild (sometimes seemingly unnecessarily) and compete over a four or five year span. Beane feels they may struggle to compete in the short-term - or even be somewhat competitive in the short-term but mediocre in the long-term - so he's getting younger, cheaper assets for more valuable ones right now, like Samardzija. Samardzija certainly isn't re-signing in Oakland when he's a free agent one year from now, so you have to - yes, have to - get something for him. You could wait until the deadline, but that's a long ways away. Samardzija could get hurt or struggle in the first half of the season, and then you have a lesser asset or no asset to trade at the deadline. The teams in need of a pitcher at the deadline might not match up in terms of a return to the A's, leaving you with an asset but nowhere to send it. You could wait until next offseason and extend him the qualifying offer you know he'll reject, but then certain teams lose their first-round draft pick if they sign him, making him (slightly) less attractive as a free agent, and depending on who he signs with, you may not get any compensation at all. You can replace "Jeff Samardzija" with "Brandon Moss" and most of that still holds true.
So, the moral of the story? No, it's not ideal, but Billy Beane is doing what he feels he has to in order to keep the roster replenished going forward. I'm sure he doesn't necessarily relish it, but no one gets into the top spot in a baseball front office because they think it's pure fun.